UnicodeDecodeError when reading CSV file in Pandas with Python

后端 未结 21 2262
野趣味
野趣味 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条回答
  •  忘了有多久
    2020-11-22 04:45

    Sometimes the problem is with the .csv file only. The file may be corrupted. When faced with this issue. 'Save As' the file as csv again.

    0. Open the xls/csv file
    1. Go to -> files 
    2. Click -> Save As 
    3. Write the file name 
    4. Choose 'file type' as -> CSV [very important]
    5. Click -> Ok 
    

提交回复
热议问题