为了账号安全,请及时绑定邮箱和手机立即绑定

python 中pandas 读取简称所有的列 报错

python 中pandas 读取简称所有的列 报错

不负相思意 2018-10-12 14:10:33
self.word_list = pd.read_csv('./word.csv', usecols=['简称'])报错如下Traceback (most recent call last):  File "baidusearch.py", line 28, in <module>    baidusearch().get_content()  File "baidusearch.py", line 8, in __init__    self.word_list = pd.read_csv('./word.csv', usecols=['简称'])  File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 709, in parser_f    return _read(filepath_or_buffer, kwds)  File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 449, in _read    parser = TextFileReader(filepath_or_buffer, **kwds)  File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 818, in __init__    self._make_engine(self.engine)  File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 1049, in _make_engine    self._engine = CParserWrapper(self.f, **self.options)  File "/usr/lib64/python3.4/site-packages/pandas/io/parsers.py", line 1695, in __init__
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1351 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信