Data types#

DataType

Base class for all Polars data types.

Numeric#

Float32

32-bit floating point type.

Float64

64-bit floating point type.

Int16

16-bit signed integer type.

Int32

32-bit signed integer type.

Int64

64-bit signed integer type.

Int8

8-bit signed integer type.

UInt16

16-bit unsigned integer type.

UInt32

32-bit unsigned integer type.

UInt64

64-bit unsigned integer type.

UInt8

8-bit unsigned integer type.

Date / Time#

Date

Calendar date type.

Datetime

Calendar date and time type.

Duration

Time duration/delta type.

Time

Time of day type.

Nested#

List(*args, **kwargs)

Struct(*args, **kwargs)

Other#

Boolean

Boolean type.

Binary

Binary type.

Categorical

A categorical encoding of a set of strings.

Null

Type representing Null / None values.

Object

Type for wrapping arbitrary Python objects.

Utf8

UTF-8 encoded string type.

Unknown

Type representing Datatype values that could not be determined statically.

Functions#

get_idx_type()

Get the datatype used for polars Indexing.