I am trying to try pandas methods in a csv file I've made which looks like:
Location Time Number
Seoul Nov.11 5
Jinju dec.22 2
wpg 3
june.6 2
something like this. It is giving me an error message in the title. How can I fix this and what position is it referring exactly?
According to https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html , you can add encoding parameter when reading the CSV file. I suggest you add "utf-8" or "ISO-8859-1".
pandas.read_csv(yourfile, encoding="utf-8")
or
pandas.read_csv(yourfile, encoding="ISO-8859-1")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With