UnicodeDecodeError when reading CSV file in Pandas with Python
解决方法:之前试了用
encoding = "utf-8"没有用,后面改为
encoding = "ISO-8859-1"可以使用,在此mark一下。亲测可用
参考链接:https://stackoverflow.com/questions/18171739/unicodedecodeerror-when-reading-csv-file-in-pandas-with-python
本文介绍了一种解决在使用Python的Pandas库读取CSV文件时遇到UnicodeDecodeError的方法。通过更改文件编码为ISO-8859-1,可以有效避免这一错误,确保数据正确加载。

1万+

被折叠的 条评论
为什么被折叠?



