Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python csv delete all rows

filename = "filewithcontents.csv"
# opening the file with w+ mode truncates the file
f = open(filename, "w+")
f.close()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #csv #delete #rows
ADD COMMENT
Topic
Name
4+1 =