Skip to content

Commit 748b7e2

Browse files
kosiewkylebarron
andauthored
Update docs/source/user-guide/dataframe/index.rst
Co-authored-by: Kyle Barron <[email protected]>
1 parent eeb2a37 commit 748b7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/user-guide/dataframe/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ out-of-memory errors.
164164
import pyarrow as pa
165165
166166
# Create a PyArrow RecordBatchReader without materializing all batches
167-
reader = pa.RecordBatchReader._import_from_c_capsule(df.__arrow_c_stream__())
167+
reader = pa.RecordBatchReader.from_stream(df)
168168
for batch in reader:
169169
... # process each batch as it is produced
170170

0 commit comments

Comments
 (0)