Schema¶
arro3.core.Schema ¶
metadata ¶
metadata_str ¶
__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.schema()
to convert this
array into a pyarrow schema, without copying memory.
append
method descriptor
¶
append(field: ArrowSchemaExportable) -> Schema
Append a field at the end of the schema.
In contrast to Python's list.append()
it does return a new object, leaving the
original Schema unmodified.
Parameters:
-
field
(ArrowSchemaExportable
) –new field
Returns:
-
Schema
–New Schema
equals
method descriptor
¶
equals(other: ArrowSchemaExportable) -> bool
Test if this schema is equal to the other
Parameters:
-
other
(ArrowSchemaExportable
) –description
Returns:
-
bool
–description
field
method descriptor
¶
from_arrow
builtin
¶
from_arrow(input: ArrowSchemaExportable) -> Schema
Construct this from an existing Arrow object
Parameters:
-
input
(ArrowSchemaExportable
) –Arrow schema to use for constructing this object
Returns:
-
Schema
–description
from_arrow_pycapsule
builtin
¶
from_arrow_pycapsule(capsule) -> Schema
Construct this object from a bare Arrow PyCapsule
get_all_field_indices
method descriptor
¶
get_field_index
method descriptor
¶
insert
method descriptor
¶
insert(i: int, field: ArrowSchemaExportable) -> Schema
Add a field at position i
to the schema.
Parameters:
-
i
(int
) –description
-
field
(ArrowSchemaExportable
) –description
Returns:
-
Schema
–description
remove
method descriptor
¶
set
method descriptor
¶
set(i: int, field: ArrowSchemaExportable) -> Schema
Replace a field at position i
in the schema.
Parameters:
-
i
(int
) –description
-
field
(ArrowSchemaExportable
) –description
Returns:
-
Schema
–description