berkin_ozdemir
berkin_ozdemir

Reputation: 15

'utf-8' codec can't decode byte 0x82 in position 16: invalid start byte

I am trying to upload a csv from a url but i get the following error: 'utf-8' codec can't decode byte 0x82 in position 16: invalid start byte

The code is as follows:

url = "http://www.akyokus.com/COE-101-Grades.xlsx"
pd.read_csv(url)

What can i do to solve this issue?

Upvotes: 0

Views: 5147

Answers (1)

Bhavya Parikh
Bhavya Parikh

Reputation: 3400

Your file is xlsx so pd.read_excel should work

url = "http://www.akyokus.com/COE-101-Grades.xlsx"

pd.read_excel(url)  

Upvotes: 4

Related Questions