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__(scale: int, precision: int | None = None)[source]#

Methods

__init__(scale[, precision])

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

precision

scale