The csv
module expects the quotation mark to be doubled by default to indicate a literal "
, so it will not correctly separate the fields ...
data = csv.reader(f, delimiter=',', quotechar='"') # ['25', 'Mike Ross', 'Tennok\\",NO"']
Use escapechar
to overcome this behavior:
data = csv.reader(f, delimiter=',', quotechar='"', escapechar='\\') # ['25', 'Mike Ross', 'Tennok"', 'NO']
source share