pandera.dtypes.Decimal#
- class pandera.dtypes.Decimal(precision=28, scale=0)[source]#
Semantic representation of a decimal data type.
Attributes
continuous
Whether the number data type is continuous.
exact
Whether the data type is an exact representation of a number.
precision
The number of significant digits that the decimal type can represent.
scale
The number of digits after the decimal point.
Methods
Check that pandera
DataType
are equivalent.Coerce data container to the data type.
Coerce an value to a particular type.
Coerce data container to the data type, raises a
ParserError
if the coercion fails :raises:ParserError
: if coercion failsCoerce data container to the data type.