So I have csv data like this:
1, 2, 3, bla bla bla, 4, 5;
"1, 2, 3, ""bla, bla, bla"", 4, 5";
"6, 7, 8, ""more, bla, bla"", 9, 10";
6, 7, 8, more bla bla, 9, 10;
In essence: a certain column has a string with the separator in it and this is in double-double quotes, while the whole line is in quotes too.
I've tried it with pandas:
df = pd.read_csv("data.csv", sep=',', skipinitialspace=True, quotechar='"', doublequote=True)
But because some of the lines are in quotes, it puts it into the first column:
column1 column12 column13 column14 column15 column16
1 2 3 bla bla bla 4 5
1,2,3,"bla, bla, bla", 4, 5 nan nan nan nan nan
6,7,8,"more, bla, bla",9,10 nan nan nan nan nan
6 7 8 more bla bla 9 10
How do I get get these quoted lines to act accordingly?