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

REGR: DataFrameGroupBy.agg with duplicate column names and a dict #55042

Merged
merged 1 commit into from Sep 7, 2023

Conversation

rhshadrach
Copy link
Member

Unlike what I reported in #55006, the core issue is not how we treat kwargs. Rather, I believe the issue occurred in #52115 where logic specific for duplicate columns was added for Series/DataFrame but also impacted groupby.

This PR fixes the regression, but groupby still does not work with duplicate columns. I've confirmed groupby.agg does not work with duplicate columns in this case on 2.0.x, and believe it hasn't for a long time (possibly forever). For this, I've opened #55041.

@rhshadrach rhshadrach added Bug Groupby Regression Functionality that used to work in a prior pandas version Apply Apply, Aggregate, Transform labels Sep 7, 2023
@rhshadrach rhshadrach added this to the 2.1.1 milestone Sep 7, 2023
@mroeschke mroeschke merged commit d04747c into pandas-dev:main Sep 7, 2023
45 of 46 checks passed
@mroeschke
Copy link
Member

Thanks @rhshadrach

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Sep 7, 2023
mroeschke pushed a commit that referenced this pull request Sep 7, 2023
…uplicate column names and a dict) (#55056)

Backport PR #55042: REGR: DataFrameGroupBy.agg with duplicate column names and a dict

Co-authored-by: Richard Shadrach <45562402+rhshadrach@users.noreply.github.com>
@rhshadrach rhshadrach deleted the regr_groupby_engine_kwargs branch September 7, 2023 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform Bug Groupby Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Getting got an unexpected keyword argument 'engine_kwargs' when doing groupby in 12.1.0
2 participants