Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Incorrect mime type for reading from Google Drive

$
0
0

@tmaronson wrote:

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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles