Seems like this has been addressed so many times, yet I'm not able to resolve it. Here's a minimal example of my CSV:
Issue, Content Test, "A, B" Test, "A, B, C" Here's the read_csv code (tried all sorts of combinations regarding parameters):
df = pd.read_csv('data.csv', delimiter=",", quotechar='"', encoding="utf-8") Here's the error: ParserError:
Error tokenizing data. C error: Expected 3 fields in line 3, saw 4
I created the CSV file with a plain text editor. Wondering also why the interpreter expects 3 fields..
skipinitialspace=True