HyukjinKwon commented on code in PR #45481:
URL: https://github.com/apache/spark/pull/45481#discussion_r1594903734
##########
python/pyspark/sql/dataframe.py:
##########
@@ -6213,6 +6214,31 @@ def mapInArrow(
"""
...
+ def toArrowTable(self) -> "pa.Table":
+ """
+ Returns the contents of this :class:`DataFrame` as PyArrow
``pyarrow.Table``.
+
+ This is only available if PyArrow is installed and available.
+
+ .. versionadded:: 4.0.0
+
+ Notes
+ -----
+ This method should only be used if the resulting PyArrow
``pyarrow.Table`` is
+ expected to be small, as all the data is loaded into the driver's
memory.
Review Comment:
```suggestion
expected to be small, as all the data is loaded into the driver's
memory.
This API is a developer API.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]