-
Notifications
You must be signed in to change notification settings - Fork 918
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 dataframe protocol #17736
base: branch-25.02
Are you sure you want to change the base?
Deprecate dataframe protocol #17736
Conversation
@@ -5562,6 +5563,12 @@ def from_pandas(cls, dataframe, nan_as_null=no_default): | |||
elif hasattr(dataframe, "__dataframe__"): | |||
# TODO: Probably should be handled in the constructor as | |||
# this isn't pandas specific | |||
assert version.parse(cudf.__version__) < version.parse("25.04.00") | |||
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.
Do we need to filter this warning too?
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.
We don't because that branch wasn't tested before 🙃 I thought about it but then skipped it since it's already untested and we're removing this code next release anyway.
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.
Ok cool thanks, LGTM
@@ -5562,6 +5563,12 @@ def from_pandas(cls, dataframe, nan_as_null=no_default): | |||
elif hasattr(dataframe, "__dataframe__"): | |||
# TODO: Probably should be handled in the constructor as | |||
# this isn't pandas specific | |||
assert version.parse(cudf.__version__) < version.parse("25.04.00") | |||
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.
Ok cool thanks, LGTM
Description
Resolves #17403
Checklist