armel joel irie
armel joel irie

Reputation: 1

How to solve UnicodeDecodeError when reading csv

I am trying to open a csv file with pandas but i get this error:

test_tweets = pd.read_csv(r"C:\Users\22587\Downloads\data\test_tweets.csv")

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

Upvotes: 0

Views: 80

Answers (1)

user14086192
user14086192

Reputation:

0xa0 is the non breaking space. You maybe copied your data from a website and there was such an invisible character

Upvotes: 1

Related Questions