UnicodeDecodeError when reading CSV file in Pandas with Python

后端 未结 21 2210
野趣味
野趣味 2020-11-22 04:27

I\'m running a program which is processing 30,000 similar files. A random number of them are stopping and producing this error...

File "C:\\Importer\\src         


        
21条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 05:06

    Another important issue that I faced which resulted in the same error was:

    _values = pd.read_csv("C:\Users\Mujeeb\Desktop\file.xlxs")
    

    ^This line resulted in the same error because I am reading an excel file using read_csv() method. Use read_excel() for reading .xlxs

提交回复
热议问题