Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

to_csv create folder

import os

outname = 'name.csv'

outdir = './dir'
if not os.path.exists(outdir):
    os.mkdir(outdir)

fullname = os.path.join(outdir, outname)    

df.to_csv(fullname)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #folder
ADD COMMENT
Topic
Name
6+2 =