Skip to content

BUG: make Series.agg aggregate when possible #53324

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

Closed
wants to merge 3 commits into from

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 commented May 21, 2023

The doc string for Series.agg says: "A passed user-defined-function will be passed a Series for evaluation." which isn't true currently. In addition Series.agg currently will not always aggregate, when given a aggregation function. This PR fixes those issues.

It can be noted that that doc string is correct for DataFrame.agg, so this PR aligns the behavior of Series.agg and DataFrame.agg.

I'm not sure if this is too drastic as a bug fix, or we want it as part of a deprecation process, but just putting this up there, will see where it goes. This will solve parts of #52140.

@topper-123 topper-123 closed this May 21, 2023
@topper-123 topper-123 deleted the series_agg branch May 21, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant