BUG: groupby.agg
raises KeyError: "['col1', 'col5'] not found in axis"
#52760
Labels
Apply
Apply, Aggregate, Transform, Map
Bug
Categorical
Categorical Data Type
Groupby
Regression
Functionality that used to work in a prior pandas version
Milestone
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
The example works fine in pandas==1.5.3 but doesn't work in pandas==2.0.0.
Expected Behavior
I think the test should work for pandas 2.0.0.
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: