Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

save dataframe to a csv local file pyspark

df.repartition(1).write.format('com.databricks.spark.csv').save("/path/to/file/myfile.csv",header = 'true')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #dataframe #csv #local #file #pyspark
ADD COMMENT
Topic
Name
2+2 =