"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte"

Hi,

Can admin please share logs for submission 111803, 111799 and 111798 please so I can debug these errors?

Alternatively, if there is an automatic method to view logs that would be quite useful too.

Thanks

This will solve UnicodeDecodeError :

df.read_csv('file_name.csv', engine='python')

The pd.read_csv documentation notes specific differences between ‘c’ (default) and ‘python’ engines. The names indicate the language in which the parsers are written.

Files store bytes, which means all unicode have to be encoded into bytes before they can be stored in a file. The pandas read_csv() takes an encoding option to deal with files in different formats. So, you can specify an encoding, such as utf-8.

df.read_csv('filename.csv',encoding='utf-8')

1 Like