Skip to content
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

Open
wants to merge 6 commits into
base: branch-25.06
Choose a base branch
from
Open

Conversation

mroeschke
Copy link
Contributor

Description

Dependent on #18331

xref #17843

Removed tests that constructed a cudf.Scalar. Code paths that check for a cudf.Scalar remain.

Added a test for this deprecation in test_scalar.py

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mroeschke mroeschke added Python Affects Python cuDF API. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 31, 2025
@mroeschke mroeschke self-assigned this Mar 31, 2025
@mroeschke mroeschke requested a review from a team as a code owner March 31, 2025 23:53
@@ -471,6 +458,9 @@ class Scalar(BinaryOperand, metaclass=CachedScalarInstanceMeta):
_VALID_BINARY_OPERATIONS = BinaryOperand._SUPPORTED_BINARY_OPERATIONS

def __init__(self, value, dtype=None):
warnings.warn(
Copy link
Contributor

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants