polars.Decimal#

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

Decimal 128-bit type with an optional precision and non-negative scale.

NOTE: this is an experimental work-in-progress feature and may not work as expected.

__init__(precision: int | None, scale: int)[source]#

Methods

__init__(precision, scale)

base_type()

Return this DataType's fundamental/root type class.

Attributes

precision

scale