I have a file with many lines like so:
1,50,"asasd",25
2,51,"apa,asdfi",26
.....
.....
How do I split the second line by comma skipping the comma inside the string inside the double quotes?
I need the result for second line as :
[2,51,"apa,asdfi",26]
Currently I am trying:
x = line.split(',')
The result is like :
['2','51','"apa','asdfi"','26']