let's say I have a string like this
ab, "cd
ef", gh, "ijk, lm"
and this
a,b,c
d,e,f
and I want to parse them with python csv module. how can i do it? Second one is assumed it's two lines but first one is not.
I thought they'll needed to be loaded into csv.reader()
so first thought I'll need to divide them by a comma so used .split(',')
but it would have a problem on the second string, as it'll ignore the newline and I also thought of .splitline()
but in this case it'll mess up the first string..
been trying to solve this for a whole day and i'm out of ideas... any help?