pandera.dtypes.Decimal#
- class pandera.dtypes.Decimal(precision=28, scale=0, rounding=None)[source]#
Semantic representation of a decimal data type.
Attributes
auto_coerceWhether to force coerce to be True in all cases
continuousWhether the number data type is continuous.
exactWhether the data type is an exact representation of a number.
precisionThe number of significant digits that the decimal type can represent.
scaleThe number of digits after the decimal point.
typeroundingThe rounding mode supported by the Python
decimal.Decimalclass.Methods
Check that pandera
DataTypeare equivalent.Coerce data container to the data type.
Coerce an value to a particular type.
Coerce data container to the data type, raises a
ParserErrorif the coercion fails :raises:ParserError: if coercion failsCoerce data container to the data type.