Answers for "blank lines with csv.writer"

0

blank lines with csv.writer

# Python 2
with open('/pythonwork/thefile_subset11.csv', 'wb') as outfile:
    writer = csv.writer(outfile)

# Python 3
with open('/pythonwork/thefile_subset11.csv', 'w', newline='') as outfile:
    writer = csv.writer(outfile)
Posted by: Guest on September-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language