I have a text file that I obtained by converting a dataframe using csv
module in Python as follows:
df.to_csv(r'listfinal.txt', header=None, index=None, sep=' ', mode='a')
The text file has double quotes around many entries, i.e,
Circles "Post Malone"
"You Know You Like It" "DJ Snake"
"Future Nostalgia" "Dua Lipa"
I wish to remove all such double quotes from anywhere on this file.
What do I change in the initial conversion df.to_csv
?