Schema#

class Schema[source]#
classmethod from_pyarrow_schema(pa_schema: pa.Schema) Schema[source]#

Creates a Daft Schema from a PyArrow Schema

Parameters:

pa_schema (pa.Schema) – PyArrow schema to convert

Returns:

Converted Daft schema

Return type:

Schema

to_pyarrow_schema() pa.Schema[source]#

Converts a Daft Schema to a PyArrow Schema

Returns:

PyArrow schema that corresponds to the provided Daft schema

Return type:

pa.Schema