Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44111 Prepare Apache Spark 4.0.0
  3. SPARK-47365

Add toArrow() DataFrame method to PySpark

    XMLWordPrintableJSON

Details

    Description

      Over in the Apache Arrow community, we hear from a lot of users who want to return the contents of a PySpark DataFrame as a PyArrow Table. Currently the only documented way to do this is:

      PySpark DataFrame --> pandas DataFrame --> PyArrow Table

      This adds significant overhead compared to going direct from PySpark DataFrame to PyArrow Table. Since PySpark already goes through PyArrow to convert to pandas, would it be possible to publicly expose a toArrow() method of the Spark DataFrame class?

      Attachments

        Issue Links

          Activity

            People

              icook Ian Cook
              icook Ian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: