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

DEPR: Enforce deprecation of include_groups in groupby.apply #60566

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach commented Dec 14, 2024

  • 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.

The PR promoting this to a FutureWarning was merged straight into 2.3.x instead of main.

#59751

@rhshadrach rhshadrach added Groupby Deprecate Functionality to remove in pandas Apply Apply, Aggregate, Transform, Map labels Dec 14, 2024
@rhshadrach rhshadrach added this to the 3.0 milestone Dec 14, 2024
new_message=new_message,
):
result = grouped.apply(how, *args, include_groups=include_groups, **kwargs)
def _apply(grouped: GroupBy, how: Callable, *args, **kwargs) -> DataFrame:
Copy link
Member

Choose a reason for hiding this comment

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

Could we just inline this function?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup - good call.

@rhshadrach rhshadrach requested a review from mroeschke December 17, 2024 11:47
@mroeschke mroeschke merged commit 9fe33bc into pandas-dev:main Dec 17, 2024
49 of 51 checks passed
@mroeschke
Copy link
Member

Thanks @rhshadrach

@rhshadrach rhshadrach deleted the enforce_groupby_apply branch December 17, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Deprecate Functionality to remove in pandas Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants