json-to-csv icon indicating copy to clipboard operation
json-to-csv copied to clipboard

Changing delimiter to semicolon and removing quotation marks

Open thowi84 opened this issue 8 years ago • 1 comments
trafficstars

Changing the delimiter to semicolon and removing quotation marks will help to open the csv file in excel. Can you please add an option for that? Also in comment would be very helpful - so everyone can use what he needs :)

thowi84 avatar Oct 11 '17 15:10 thowi84

For whoever will find this useful - to remove quotation, change writer = csv.DictWriter(f, header, quoting=csv.QUOTE_ALL) to writer = csv.DictWriter(f, header, quoting=csv.QUOTE_NONE)

As reference for available options: https://docs.python.org/3/library/csv.html

ghost avatar Mar 08 '19 11:03 ghost