GitHub user BryanCutler opened a pull request: https://github.com/apache/spark/pull/19459
[SPARK-20791][PYSPARK] Use Arrow to create Spark DataFrame from Pandas ## What changes were proposed in this pull request? This change uses Arrow to optimize the creation of a Spark DataFrame from a Pandas DataFrame. The input df is sliced according to the default parallelism. The optimization is enabled with the existing conf "spark.sql.execution.arrow.enable" and is disabled by default. ## How was this patch tested? Added new unit test to create DataFrame with and without the optimization enabled, then compare results. You can merge this pull request into a Git repository by running: $ git pull https://github.com/BryanCutler/spark arrow-createDataFrame-from_pandas-SPARK-20791 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/19459.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #19459 ---- ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org