Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #blank #lines
ADD COMMENT
Topic
Name
8+3 =