QuestionQ248

VerifiedUsing Pandas API on Spark

Which configuration can be enabled to optimize conversion between Pandas and PySpark DataFrames by using Apache Arrow?

Explanation

The spark.sql.execution.arrow.pyspark.enabled setting enables Apache Arrow–based columnar data transfers for DataFrame.toPandas() and for SparkSession.createDataFrame() when the input is a Pandas DataFrame. This improves conversion performance between PySpark and Pandas DataFrames.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!