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 Groupby.collect #15808

Merged
merged 9 commits into from
May 22, 2024

Conversation

galipremsagar
Copy link
Contributor

Description

After we made our groupby fail more aggressively for unsupported types in #15712, Groupby.collect started to fail on string column, where this isn't a supported aggregation on string column in pandas and this method doesn't exist in pandas Groupby, hence this PR suggest the alternative equivalent and deprecates the API to be removed in next release.

Checklist

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

@galipremsagar galipremsagar added improvement Improvement / enhancement to an existing function breaking Breaking change labels May 21, 2024
@galipremsagar galipremsagar self-assigned this May 21, 2024
@galipremsagar galipremsagar requested review from a team as code owners May 21, 2024 21:21
@github-actions github-actions bot added the Python Affects Python cuDF API. label May 21, 2024
Copy link
Member

@rjzamora rjzamora left a comment

Choose a reason for hiding this comment

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

Thanks @galipremsagar

Good to know that agg(list) is now available in cudf. We will need to make changes to the new (dask-expr) API to deprecate "collect".

python/dask_cudf/dask_cudf/tests/test_groupby.py Outdated Show resolved Hide resolved
python/dask_cudf/dask_cudf/groupby.py Show resolved Hide resolved
@rjzamora
Copy link
Member

@galipremsagar - Just pushed a few changes that will hopefully get legacy and expr APIs both working.

@galipremsagar
Copy link
Contributor Author

@galipremsagar - Just pushed a few changes that will hopefully get legacy and expr APIs both working.

Thanks @rjzamora !!

@galipremsagar
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 217c73f into rapidsai:branch-24.06 May 22, 2024
70 checks passed
@galipremsagar galipremsagar added the 5 - Ready to Merge Testing and reviews complete, ready to merge label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge breaking Breaking change improvement Improvement / enhancement to an existing function Python Affects Python cuDF API.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants