Answer the question
In order to leave comments, you need to log in
How to import csv file into iPython without UnicodeDecodeError?
There is a file Direct.csv (Cyrillic) and ipython3.4
I write:
import pandas as pd
Location=r'C:\Users\Victor\Desktop\Direct.csv'
df=pd.read_csv(Location)
Outcome: UnicodeDecodeError: 'utf- 8' codec ca
n't decode byte 0xca in position 0: invalid continuation byte
Thanks in advance
Answer the question
In order to leave comments, you need to log in
Try setting the encoding:
Alternatively, try moving the csv file to a directory without Cyrillic characters in the path.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question