Module datatypes

Source
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.

Modules§

categorical
enum_
time_unit
time_zone

Structs§

BinaryOffsetType
BinaryType
BooleanType
CatIter
CategoricalChunked
CategoricalChunkedBuilder
CategoricalMapping
CategoricalType
Categories
A (named) object which is used to indicate which categorical data types have the same mapping. The underlying mapping is dynamic, and if gc is true may be automatically cleared when the last reference to it goes away.
CompatLevel
DateType
DatetimeType
DecimalType
Dimension
DurationType
FalseT
Field
Characterizes the name and the DataType of a column.
FixedSizeListType
Float32Type
Float64Type
FrozenCategories
An ordered collection of unique strings with an associated pre-computed mapping to go from string <-> index.
GlobalRevMapMerger
Int8Type
Int16Type
Int32Type
Int64Type
Int128Type
ListType
Logical
Maps a logical type to a chunked array implementation of the physical type. This saves a lot of compiler bloat and allows us to reuse functionality.
ObjectType
OwnedObject
PlSmallStr
String type that inlines small strings.
StringType
StructType
TimeType
TimeZone
TrueT
UInt8Type
UInt16Type
UInt32Type
UInt64Type

Enums§

AnyValue
ArrowDataType
The set of supported logical types in this crate.
ArrowTimeUnit
The time units defined in Arrow.
CategoricalOrdering
DataType
ReshapeDimension
A dimension in a reshape.
RevMapping
TimeUnit
UnknownKind

Constants§

IDX_DTYPE

Statics§

EXTENSION_NAME

Traits§

ArrayCollectIterExt
ArrayFromIter
ArrayFromIterDtype
AsRefDataType
CategoricalMergeOperation
GetAnyValue
InitHashMaps
InitHashMaps2
IntoMetadata
IntoScalar
LogicalType
MetaDataExt
NumericNative
PolarsDataType
Safety
PolarsFloatType
PolarsIntegerType
PolarsNumericType
PolarsPhysicalType
SchemaExtPl
StaticArray

Functions§

call_categorical_merge_operation
create_enum_dtype
make_rhs_categoricals_compatible
make_rhs_list_categoricals_compatible
merge_dtypes
unpack_dtypes

Type Aliases§

ArrayChunked
BinaryChunked
BinaryOffsetChunked
BooleanChunked
DateChunked
DatetimeChunked
DecimalChunked
DurationChunked
FieldRef
Float32Chunked
Float64Chunked
IdxArr
IdxCa
IdxType
Int8Chunked
Int16Chunked
Int32Chunked
Int64Chunked
Int128Chunked
ListChunked
ObjectChunked
PlHashMap
PlHashSet
PlIdHashMap
This hashmap uses an IdHasher
PlIndexMap
PlIndexSet
PlRandomState
StringChunked
TimeChunked
UInt8Chunked
UInt16Chunked
UInt32Chunked
UInt64Chunked