polars.Duration#

class polars.Duration(*args: Any, **kwargs: Any)[source]#

Time duration/delta type.

__init__(time_unit: TimeUnit = 'us')[source]#

Time duration/delta type.

Parameters:
time_unit{‘us’, ‘ns’, ‘ms’}

Unit of time.

Methods

__init__([time_unit])

Time duration/delta type.

base_type()

Return this DataType's fundamental/root type class.

is_(other)

Check if this DataType is the same as another DataType.

is_not(other)

Check if this DataType is NOT the same as another DataType.

Attributes

is_nested

time_unit