List contains below data,
['Obama', 'John Barta', 'IN, 33, 33', '444', '']
I am trying to write this data into a csv file using below code,
with open(output_file, 'w') as writeFile:
writer = csv.writer(writeFile, delimiter=',', quotechar="'", quoting=csv.QUOTE_NONE)
writer.writerow(colValues)
But getting below output in csv file,
"Obama","John Barta",'"IN, 33, 33"',"444",""
I don't want single quote between '"IN, 33, 33"'.
Desired output:
"Obama","John Barta","IN, 33, 33","444",""