cudf.Decimal64Dtype.from_arrow#
- classmethod Decimal64Dtype.from_arrow(typ)#
Construct a cudf decimal dtype from a
pyarrow
dtypeExamples
>>> import cudf >>> import pyarrow as pa >>> pa_type = pa.decimal128(precision=9, scale=2)
Constructing a
Decimal32Dtype
:>>> cudf.Decimal32Dtype.from_arrow(pa_type) Decimal64Dtype(precision=9, scale=2)
Constructing a
Decimal64Dtype
:>>> cudf.Decimal64Dtype.from_arrow(pa_type) Decimal64Dtype(precision=9, scale=2)
Constructing a
Decimal128Dtype
:>>> cudf.Decimal128Dtype.from_arrow(pa_type) Decimal128Dtype(precision=9, scale=2)