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

self.word_list = pd.read_csv('./word.csv', usecols=['简称'])

报错如下

Traceback (most recent call last):

File "baidusearch.py", line 28, in

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__

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值