All column errors reported by pandas read abbreviation in python

self.word_list = pd.read_csv("./word.csv", usecols=[""])

clipboard.png



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__
    self._reader = parsers.TextReader(src, **kwds)
  File "pandas/_libs/parsers.pyx", line 562, in pandas._libs.parsers.TextReader.__cinit__
  File "pandas/_libs/parsers.pyx", line 790, in pandas._libs.parsers.TextReader._get_header
UnicodeDecodeError: "utf-8" codec can"t decode byte 0xbc in position 0: invalid start byte

Sep.16,2021

should be a file encoding problem. You can specify encoding to try, that is,
word_list = pandas.read_csv ('. / word.csv', usecols= ['abbreviation'], encoding='gbk')

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b0b4-2b9dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b0b4-2b9dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?