I have this kind of Error when I want to read csv in Jupyter Notebook in Pandas: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 37: invalid continuation byte
what should I do?, use encoding argument ?
Asked
Active
Viewed 387 times
0

dingaro
- 2,156
- 9
- 29
-
See [this answer](https://stackoverflow.com/a/56231664/4909087) under the "Fix UnicodeDecodeError while reading" scenario. TLDR; it was saved using a different encoding that isn't compatible with utf-8. – cs95 Dec 11 '19 at 21:15
-
it still does not work – dingaro Dec 11 '19 at 21:17
-
"it still does not work" what exactly did you try? – cs95 Dec 11 '19 at 21:18
-
df = pd.read_csv("datasets/myfile.csv", encoding='latin-1') – dingaro Dec 11 '19 at 21:19
-
Here's a relevant thread: https://stackoverflow.com/questions/18171739/unicodedecodeerror-when-reading-csv-file-in-pandas-with-python – cs95 Dec 11 '19 at 21:21