I need to delete the quotes from the csv. I have a list of dictionaries of the following structure.
dicc= {"name":name, "number":number}
for i in api:
list.append(dicc)
df=pd.DataFrame(list,columns= ['name', 'number'])
export_csv = df.to_csv (r'/name.csv', index = None, header=True,quoting= False)
The result is
name, number
A, 2
B, "1,2,3,4"
C, 3
The result I want:
name, number
A, 2
B, 1,2,3,4
C, 3
The format of the result is a comand "cat" of the csv. I need delete de quotes in the list. I tried a replace and it didn't work.
Solution
export_csv = df.to_csv (r'/name.csv', index = None, header=True,sep="|")
Or separate the list of numbers by another character that is not ","