You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libcudf has both a 32-bit and 64-bit decimal type, but we only expose a Decimal64Dtype in Python. There's no reason we shouldn't also expose a Decimal32Dtype and corresponding column type.
The text was updated successfully, but these errors were encountered:
Fixes: #8218
Similarly to libcudf's 64-bit decimal type, this PR exposes the `Decimal32Dtype `and its corresponding `Decimal32Column` type. Following this implementation, user can create a series or dataframe with `decimal32` dtype.
Note: Only `to_arrow` and `from_arrow` methods are currently being supported.
**Example:**
```
>>> import cudf
>>> s = cudf.Series([1,2,3,4], dtype=cudf.Decimal32Dtype(precision=8, scale=2))
>>> s
0 1.00
1 2.00
2 3.00
3 4.00
dtype: decimal32
```
Authors:
- Sheilah Kirui (https://github.com/skirui-source)
Approvers:
- Michael Wang (https://github.com/isVoid)
URL: #8438
libcudf has both a 32-bit and 64-bit decimal type, but we only expose a
Decimal64Dtype
in Python. There's no reason we shouldn't also expose aDecimal32Dtype
and corresponding column type.The text was updated successfully, but these errors were encountered: