-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate cudf.Scalar #18394
base: branch-25.06
Are you sure you want to change the base?
Deprecate cudf.Scalar #18394
Conversation
@@ -471,6 +458,9 @@ class Scalar(BinaryOperand, metaclass=CachedScalarInstanceMeta): | |||
_VALID_BINARY_OPERATIONS = BinaryOperand._SUPPORTED_BINARY_OPERATIONS | |||
|
|||
def __init__(self, value, dtype=None): | |||
warnings.warn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tests are failing because of this warning. I guess there are still some places where we use cudf.Scalar
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, thanks. I haven't merged in #18331 yet from branch 25.06 which should be the last internal usage of cudf.Scalar
Description
Dependent on #18331
xref #17843
Removed tests that constructed a
cudf.Scalar
. Code paths that check for acudf.Scalar
remain.Added a test for this deprecation in
test_scalar.py
Checklist