Module polars::datatypes[][src]

Expand description

Data types supported by Polars.

At the moment Polars doesn’t include all data types available by Arrow. The goal is to incrementally support more data types and prioritize these by usability.

See the AnyValue variants for the data types that are currently supported.

Structs

Enums

The set of supported logical types. Each variant uniquely identifies a logical type, which define specific semantics to the data (e.g. how it should be represented). A DataType has an unique corresponding [PhysicalType], obtained via DataType::to_physical_type, which uniquely identifies an in-memory representation of data. The DataType::Extension is special in that it augments a DataType with metadata to support custom types. Use to_logical_type to desugar such type and return its correspoding logical type.

Time units defined in Arrow.

Traits

Type Definitions