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 dataframe protocol #17736

Open
wants to merge 2 commits into
base: branch-25.02
Choose a base branch
from

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Jan 14, 2025

Description

Resolves #17403

Checklist

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

@vyasr vyasr added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jan 14, 2025
@vyasr vyasr self-assigned this Jan 14, 2025
@vyasr vyasr requested a review from a team as a code owner January 14, 2025 18:08
@vyasr vyasr requested review from wence- and Matt711 January 14, 2025 18:08
@github-actions github-actions bot added the Python Affects Python cuDF API. label Jan 14, 2025
@@ -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(
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok cool thanks, LGTM

@vyasr vyasr requested a review from Matt711 January 15, 2025 00:52
@@ -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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok cool thanks, LGTM

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: In Progress
Development

Successfully merging this pull request may close these issues.

[FEA] Deprecate and remove data interchange protocol
3 participants