Field¶
arro3.core.Field ¶
An Arrow Field.
metadata_str
property
¶
The schema's metadata where keys and values are str
, not bytes
.
__arrow_c_schema__ ¶
__arrow_c_schema__() -> object
An implementation of the Arrow PyCapsule Interface. This dunder method should not be called directly, but enables zero-copy data transfer to other Python libraries that understand Arrow memory.
For example, you can call pyarrow.field()
to convert this
array into a pyarrow field, without copying memory.
from_arrow
classmethod
¶
from_arrow(input: ArrowSchemaExportable) -> Field
Construct this from an existing Arrow object.
It can be called on anything that exports the Arrow schema interface
(has an __arrow_c_schema__
method).
from_arrow_pycapsule
classmethod
¶
from_arrow_pycapsule(capsule) -> Field
Construct this object from a bare Arrow PyCapsule
with_metadata ¶
Add metadata as dict of string keys and values to Field.
with_nullable ¶
A copy of this field with the replaced nullability.
with_type ¶
with_type(new_type: ArrowSchemaExportable) -> Field
A copy of this field with the replaced type