Incorrect mime type for reading from Google Drive


#1

Hello,

I am having problems submitting the file for the clothing apparel problem. Using the suggested code for GetContentFile without the mimetype attribute for second argument, the csv file is not recognized. When I run a cell that included the code below there are no errors.

download.GetContentFile(‘sample_submission_I5njJSF.csv’, mimetype=‘application/vnd.openxmlformats-officedocument.spreadsheetml.sheet’)

The problem then is when I run code to read the csv file I get an error in decoding. Error is:

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xfa in position 1: invalid start byte

Not sure reason there is a problem reading csv files from Google drive and why I have to go through with this process.

Thanks in advance.