9

Is it possible to export data-frame from Apache Spark to feather (https://github.com/wesm/feather) file?

ayhan
  • 70,170
  • 20
  • 182
  • 203
Dmitry Petrov
  • 1,490
  • 1
  • 19
  • 34

1 Answers1

2

Not sure, you can do it directly, but you can transform first the Spark Dataframe (on pyspark) to a pandas and store it the to Feather:

pandas_df = spark_df.toPandas()

feather.write_feather(pandas_df, 'example_feather')

But I afraid, this will have an impact on the performance.