Skip to content

Move helper methods for Named Aggregation out of groupby/generic #28380

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
christopherzimmerman opened this issue Sep 11, 2019 · 3 comments
Closed
Labels
Refactor Internal refactoring of code

Comments

@christopherzimmerman
Copy link
Contributor

christopherzimmerman commented Sep 11, 2019

Related to #28333 and #26513

There are several helper methods to help with named aggregations, that are found in pandas.core.groupby.generic, namely:

If this functionality gets standardized across aggregations other than just groupby, it would make sense to have these moved out of this file.

@WillAyd WillAyd added the Refactor Internal refactoring of code label Sep 11, 2019
@WillAyd
Copy link
Member

WillAyd commented Sep 11, 2019

Makes sense. I think would take a PR if you have something concrete to propose

@TomAugspurger

@TomAugspurger
Copy link
Contributor

Yeah. I'd recommend making a branch that does everything (moving the helpers, implementing NamedAgg for window), to prove things work, and then split the moving of helpers to its own PR.

@jbrockmendel
Copy link
Member

These now live in core.apply, closing as complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

No branches or pull requests

4 participants