python讀取csv文件出錯:顯示utf-8編碼問題該怎麼解決

UnicodeDecodeError when reading CSV file in Pandas with Python
解決方法:之前試了用
encoding = "utf-8"沒有用,後面改爲encoding = "ISO-8859-1"

可以使用,在此mark一下。親測可用

參考:https://blog.csdn.net/yimixgg/article/details/80088809?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

參考鏈接:https://stackoverflow.com/questions/18171739/unicodedecodeerror-when-reading-csv-file-in-pandas-with-python

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章