Pandas读取中文文本文件报错:python ‘utf-8‘ codec can‘t decode byte 0xe3 in position 0: unexpected end of data
近日用pandas的read_csv读取中文文本文件时报错:python'utf-8'codeccan'tdecodebyte0xe3inposition0:unexpectedendofdata。看到错误以为是读取时encoding选择错误,某个二进制块无法用'utf-8'读取,不应该选择'utf-8'。于是将utf-8,gb2312,gb18030,gbk,utf-8-sig,cp936,bi