We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4711f commit 50fe1c1Copy full SHA for 50fe1c1
docs/source/user-guide/dataframe/index.rst
@@ -175,7 +175,15 @@ PyArrow:
175
.. code-block:: python
176
177
for batch in df:
178
- ... # each batch is a ``RecordBatch``
+ ... # each batch is a ``datafusion.RecordBatch``
179
+
180
+Each batch exposes ``to_pyarrow()``, allowing conversion to a PyArrow
181
+table without collecting everything eagerly:
182
183
+.. code-block:: python
184
185
+ import pyarrow as pa
186
+ table = pa.Table.from_batches(b.to_pyarrow() for b in df)
187
188
Asynchronous iteration is supported as well, allowing integration with
189
``asyncio`` event loops:
0 commit comments