polars.datatypes.Field#

class polars.datatypes.Field(name: str, dtype: PolarsDataType)[source]#

Definition of a single field within a Struct DataType.

Parameters:
name

The name of the field within its parent Struct.

dtype

The DataType of the field’s values.

__init__(name: str, dtype: PolarsDataType) None[source]#

Methods

__init__(name, dtype)

Attributes

name

dtype