I have a .csv containing data like the following:
....
"4", "mercedes", "BLT254", "Arkis-UDV GmbH, Berlin, Oberweg", "2007"
"5", "bmw", "SUV873", "Meier Auto", "2013"
....
I tried reading it by means of read_csv:
data = pd.read_csv("Auszug_2020.csv", sep = ",", encoding = "ISO-8859-1", quotechar = '"')
Every data piece is wrapped inside an " ". Within the quotes, sometimes the separator "," occurs. That's a problem! I thought I could fix this by using quoechar = '"', unfortunately it is still not working.
ParserError: Error tokenizing data. C error: Expected 5 fields in line 4, saw 7
What am I doing wrong?
EDIT: My bad! The encoding is "utf-16", I just realized. Now everything is working. Please forgive me python pandas, I'll never say anything bad about you again.