Field¶
arro3.core.Field ¶
A Python-facing Arrow field.
This is a wrapper around a [FieldRef].
metadata ¶
The schema's metadata.
metadata_str ¶
The schema's metadata where keys and values are str
, not bytes
.
nullable ¶
nullable: bool = <attribute 'nullable' of 'arro3.core._core.Field' objects>
The field nullability.
type ¶
type: DataType = <attribute 'type' of 'arro3.core._core.Field' objects>
Create new field without metadata, if any
__arrow_c_schema__
method descriptor
¶
__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.
equals
method descriptor
¶
equals(other: ArrowSchemaExportable) -> bool
Test if this field is equal to the other
from_arrow
builtin
¶
from_arrow(input: ArrowSchemaExportable) -> Field
Construct this from an existing Arrow object.
It can be called on anything that exports the Arrow schema interface
(__arrow_c_schema__
).