samedi 16 juillet 2016

how to export a table dataframe in pyspark to csv?


I am using spark-1.3.1 (pyspark) and I have generated a table using a SQL query. I now have an object that is a DataFrame. I want to export this DataFrame object (I have called it "table") to a csv file so I can manipulate it and plot the columns. How do I export the DataFrame "table" to a csv file?

Thanks!


Aucun commentaire:

Enregistrer un commentaire