pyarrow.decimal256#
- pyarrow.decimal256(intprecision,intscale=0)→DataType#
Create decimal type with precision and scale and 256-bit width.
Arrow decimals are fixed-point decimal numbers encoded as a scaledinteger. The precision is the number of significant digits that thedecimal type can represent; the scale is the number of digits afterthe decimal point (note the scale can be negative).
For most use cases, the maximum precision offered by
decimal128is sufficient, and it will result in a more compact and more efficientencoding.decimal256is useful if you need a precision higherthan 38 significant digits.- Parameters:
- Returns:
- decimal_type
Decimal256Type
- decimal_type
On this page

