Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DEPR: pinning name in SeriesGroupBy.agg #51703

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Mar 1, 2023

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

xref #41090 doesn't fully close it as there are other places that use the deprecated pattern.

Need a good "use X instead" for the warning messsage.

@jbrockmendel jbrockmendel added Groupby Deprecate Functionality to remove in pandas labels Mar 1, 2023
@rhshadrach
Copy link
Member

What about:

If your operation requires utilizing the groupby keys, iterate over the groupby object instead.

@jbrockmendel
Copy link
Member Author

Good idea, updated

@rhshadrach rhshadrach added this to the 2.1 milestone Mar 3, 2023
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm

@rhshadrach rhshadrach merged commit 455ffb2 into pandas-dev:main Mar 3, 2023
@rhshadrach
Copy link
Member

Thanks @jbrockmendel

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Deprecate Functionality to remove in pandas Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants