Bases: _RecordBatchStreamReader
Reader for the Arrow streaming binary format.
pyarrow.NativeFile
, or file-like Python object
Either an in-memory buffer, or a readable file object. If you want to use memory map use MemoryMappedFile as source.
pyarrow.ipc.IpcReadOptions
Options for IPC deserialization. If None, default values will be used.
MemoryPool
, default None
If None, default memory pool is used.
Methods
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.
Schema
Schema 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.
Schema
The 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.
stream
object
Any object that implements the Arrow PyCapsule Protocol for streams.
Schema
, default None
The schema to which the stream should be casted, if supported by the stream object.
Iterate over record batches from the stream along with their custom metadata.
RecordBatchWithMetadata
Read all record batches as a pyarrow.Table.
Table
Read next RecordBatch from the stream.
RecordBatch
At end of stream.
Read next RecordBatch from the stream along with its custom metadata.
RecordBatch
KeyValueMetadata
At 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()
.
pandas.DataFrame
Shared schema of the record batches in the stream.
Schema
Current IPC read statistics.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4