Simpan DataFrame ke CSV Local File Pyspark

df.repartition(1).write.format('com.databricks.spark.csv').save("/path/to/file/myfile.csv",header = 'true')
Grotesque Gaur