Read csv data double quote in python

0

I'm trying to read data from a csv file, especially numbers but I'm getting an unexpected result.

example:

csv: "17.913,92";"17.913,92";

import csv
with open('eggs.csv', 'rb') as csvfile:
   reader = csv.reader(csvfile, delimiter=';')
   for row in reader
      value = row

value has u'"17.913,92"' saved, but I need "17.913,92" . how to read this data without the commas, and without doing something like cutting off the remaining characters ""

thanks

    
asked by Edwin Cubillos 15.06.2018 в 20:32
source

1 answer

0

Try this way:

reader = csv.reader(cvsfile, delimiter=';', quoting=csv.QUOTE_MINIMAL)
    
answered by 15.06.2018 в 21:32