'utf-8' codec can't decode byte 0xa0 in position 4276: invalid start byte

前端 未结 4 690
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 07:54

I try to read and print the following file: txt.tsv (https://www.sec.gov/files/dera/data/financial-statement-and-notes-data-sets/2017q3_notes.zip)

According to the S

4条回答
  •  情书的邮戳
    2020-12-05 08:24

    i have the same error message for .csv file, and This Worked for me :

         df = pd.read_csv('Text.csv',encoding='ANSI')
    

提交回复
热议问题