pyarrow.decimal256#
- pyarrow.decimal256(int precision, int scale=0) DataType #
Create decimal type with precision and scale and 256-bit width.
Arrow decimals are fixed-point decimal numbers encoded as a scaled integer. The precision is the number of significant digits that the decimal type can represent; the scale is the number of digits after the decimal point (note the scale can be negative).
For most use cases, the maximum precision offered by
decimal128
is sufficient, and it will result in a more compact and more efficient encoding.decimal256
is useful if you need a precision higher than 38 significant digits.- Parameters:
- Returns:
- decimal_type
Decimal256Type
- decimal_type