types¶
arro3.core.types ¶
ArrowArrayExportable ¶
Bases: Protocol
An object with an __arrow_c_array__
method.
Supported objects include:
- arro3
Array
orRecordBatch
objects. - pyarrow
Array
orRecordBatch
objects
Such an object implements the Arrow C Data Interface interface via the Arrow PyCapsule Interface. This allows for zero-copy Arrow data interchange across libraries.
ArrowSchemaExportable ¶
Bases: Protocol
An object with an __arrow_c_schema__
method.
Supported objects include:
- arro3
Schema
,Field
, orDataType
objects. - pyarrow
Schema
,Field
, orDataType
objects.
Such an object implements the Arrow C Data Interface interface via the Arrow PyCapsule Interface. This allows for zero-copy Arrow data interchange across libraries.
ArrowStreamExportable ¶
Bases: Protocol
An object with an __arrow_c_stream__
method.
Supported objects include:
- arro3
Table
,RecordBatchReader
,ChunkedArray
, orArrayReader
objects. - Polars
Series
orDataFrame
objects (polars v1.2 or higher) - pyarrow
RecordBatchReader
,Table
, orChunkedArray
objects (pyarrow v14 or higher) - pandas
DataFrame
s (pandas v2.2 or higher) - ibis
Table
objects.
For an up to date list of supported objects, see this issue.
Such an object implements the Arrow C Stream interface via the Arrow PyCapsule Interface. This allows for zero-copy Arrow data interchange across libraries.