We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
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.
In [38]: df = pd.DataFrame({"group": list("aab"), "val1": range(3)}) In [39]: df.groupby("group").agg("cumsum") Out[39]: val1 0 0 1 1 2 2 In [40]: df.groupby("group").agg(lambda x: x.cumsum()) ValueError: Must produce aggregated value
The built-in transformation functions are allowed as arguments to .agg. Haven't checked yet that this is solved by @rhshadrach work in #57706
.agg
Error for built-in functions
'3.0.0.dev0+681.g434fda08cf'
The text was updated successfully, but these errors were encountered:
I think of this as #44845. I decided to keep it out of scope for #57706 since it could independently be done.
Sorry, something went wrong.
Ah thanks - sorry I didn't catch that. This is defintely a dupe
No branches or pull requests
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 built-in transformation functions are allowed as arguments to
.agg
. Haven't checked yet that this is solved by @rhshadrach work in #57706Expected Behavior
Error for built-in functions
Installed Versions
'3.0.0.dev0+681.g434fda08cf'
The text was updated successfully, but these errors were encountered: