windows - CSV file written with Python has blank lines between each row - Stack Overflow

PHOTO EMBED

Tue Feb 08 2022 02:21:25 GMT+0000 (Coordinated Universal Time)

Saved by @ianh #python

# Python 3
with open('/pythonwork/thefile_subset11.csv', 'w', newline='') as outfile:
    writer = csv.writer(outfile)
content_copyCOPY

https://stackoverflow.com/questions/3348460/csv-file-written-with-python-has-blank-lines-between-each-row