0

I have a large Spark dataframe df which I need to write on local disk.

df.toPandas().to_csv() does not work since this consume too much memory.

How to split the dataframe and write down into a single file ?

OneCricketeer
  • 151,199
  • 17
  • 111
  • 216
quantCode
  • 393
  • 1
  • 3
  • 11

0 Answers0