UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 4: invalid start byte
pandas读取csv文件出现错误:
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xa3 in position 4: invalid start byte
原因是csv文件不是utf-8格式,在读取代码后面加上encoding="ISO-8859-1"即可,或者修改文件的编码格式:https://blog.csdn.net/moledyzhang/article/details/78978312

浙公网安备 33010602011771号