Skip to content

BUG: groupby.agg behavior changes in the present of args/kwargs#64113

Open
rhshadrach wants to merge 3 commits intopandas-dev:mainfrom
rhshadrach:gb_agg_no_branching
Open

BUG: groupby.agg behavior changes in the present of args/kwargs#64113
rhshadrach wants to merge 3 commits intopandas-dev:mainfrom
rhshadrach:gb_agg_no_branching

Conversation

@rhshadrach
Copy link
Member

@rhshadrach rhshadrach added Bug Groupby Apply Apply, Aggregate, Transform, Map labels Feb 11, 2026

result = (
df.groupby("Name", observed=observed)
.agg(DataFrame.sum, skipna=True)
Copy link
Member Author

Choose a reason for hiding this comment

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

It's possible some users are relying on this, but this is bad enough behavior I think we should cal this a bug. For example, if you remove skipna=True or having multiple groupings (e.g. ["Name1", "Name2"]), then this raises on main.

@rhshadrach rhshadrach added this to the 3.1 milestone Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment