| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.csv.CSVStreamingReader.html | [Back] [Original] |
Section Navigation
Bases: RecordBatchReader
An object that reads record batches incrementally from a CSV file.
Should not be instantiated directly by user code.
Methods
|
|
|
Wrap this reader with one that casts each batch lazily as it is pulled. |
|
Release any resources associated with the reader. |
|
Create RecordBatchReader from an iterable of batches. |
|
Create RecordBatchReader from a Arrow-compatible stream object. |
Iterate over record batches from the stream along with their custom metadata. |
|
|
Read all record batches as a pyarrow.Table. |
|
Read next RecordBatch from the stream. |
Read next RecordBatch from the stream along with its custom metadata. |
|
|
Read contents of stream to a pandas.DataFrame. |
Attributes
Wrap this reader with one that casts each batch lazily as it is pulled. Currently only a safe cast to target_schema is implemented.
SchemaSchema to cast to, the names and order of fields must match.
Release any resources associated with the reader.
Create RecordBatchReader from an iterable of batches.
SchemaThe shared schema of the record batches
Iterable[RecordBatch]The batches that this reader will return.
Create RecordBatchReader from a Arrow-compatible stream object.
This accepts objects implementing the Arrow PyCapsule Protocol for
streams, i.e. objects that have a __arrow_c_stream__ method.
Iterate over record batches from the stream along with their custom metadata.
RecordBatchWithMetadataRead next RecordBatch from the stream.
At end of stream.
Read next RecordBatch from the stream along with its custom metadata.
RecordBatchKeyValueMetadataAt end of stream.
Read contents of stream to a pandas.DataFrame.
Read all record batches as a pyarrow.Table then convert it to a pandas.DataFrame using Table.to_pandas.
Arguments to forward to Table.to_pandas().
CSVStreamingReaderCSVStreamingReader.__init__()CSVStreamingReader.cast()CSVStreamingReader.close()CSVStreamingReader.from_batches()CSVStreamingReader.from_stream()CSVStreamingReader.iter_batches_with_custom_metadata()CSVStreamingReader.read_all()CSVStreamingReader.read_next_batch()CSVStreamingReader.read_next_batch_with_custom_metadata()CSVStreamingReader.read_pandas()CSVStreamingReader.schema
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |