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
Is your feature request related to a problem? Please describe.
I'd like to be able to perform boolean comparisons (>, >=, <, <=, ==) on dataframes and series with decimal columns.
Describe the solution you'd like
I would like to mimic the behavior of performing comparisons on dataframes or series with float columns. For example:
Closes#7498
This PR adds binary comparison `eq`, `lt`, `gt`, `le`, `ge` to
- [x] decimal column v. decimal column
- [x] decimal column v. decimal scalar (`decimal.Decimal` and decimal `cudf.Scalar`)
- [x] decimal column v. integer column (`cudf.utils.dtypes.INTEGER_TYPES`)
- [x] decimal column v. integer scalar (Python ints)
Other minor adds:
- Supports binary ops between `cudf.DecimalColumn` and `cudf.Scalar`, where `Scalar.dtype` is `cudf.Decimal64Dtype` (follow up for #7732 )
- Short comment noting use of decimal64 in `decimals.pxd`
- Adding decimal data type in `basics.rst`
Authors:
- Michael Wang (https://github.com/isVoid)
Approvers:
- Keith Kraus (https://github.com/kkraus14)
- GALI PREM SAGAR (https://github.com/galipremsagar)
URL: #7716
Is your feature request related to a problem? Please describe.
I'd like to be able to perform boolean comparisons (
>
,>=
,<
,<=
,==
) on dataframes and series withdecimal
columns.Describe the solution you'd like
I would like to mimic the behavior of performing comparisons on dataframes or series with float columns. For example:
returns
But if a
decimal
column is presentit returns
The text was updated successfully, but these errors were encountered: