I'm having trouble splitting a csv because some of the fields have a "\n" inside them
i'm using:
file_data = csv_file.read().decode("utf-8")
csv_data = file_data.split("\n")
but the fields look something like
'string 1','string 2',
'string
3'
'string 4',
i would like csv_data[0] to be strings 1 and 2, csv_data[1] to be string 3, and csv_data[2] to be string 4
the way i'm currently using, i get csv_data[0] correctly, but string 3 is split in two indexes since it has a /n inside it's text...
---------------[edit]---------------
i solved it by not using split, instead iterating through csv_data (answer posted below)