The default example on csv.writer in python is to invent a monster:
with open('f.csv', 'w', newline='') as c:
w = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL)
https://docs.python.org/3/library/csv.html
Post
July 26, 2021