-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: Move generic methods to aggregation.py #30856
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm @jreback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, some added typing and fixups of the doc-strings would be good. ping on green.
we can do other things in followons (e.g. making actual logic changes).
pandas/core/aggregation.py
Outdated
return aggspec, columns, col_idx_order | ||
|
||
|
||
def _make_unique(seq): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make this name more verbose: _make_unique_kwarg_list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, changed!
@@ -633,28 +633,28 @@ def test_lambda_named_agg(func): | |||
|
|||
class TestLambdaMangling: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move all of these tests to pandas/tests/test_aggregation.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just the tests where you are moving the code (e.g. the maybe_mangle.....) and such
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I was thinking it as a follow-up, but maybe good to have it in a go here! I moved all tests related to functions in aggregation to pandas/tests/test_aggregation.py
Hello @charlesdong1991! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-01-20 22:05:57 UTC |
lgtm. ping on green. |
thanks @charlesdong1991 |
xref #29116
#29116 (review)
based on @jreback comment, this PR is a precursor PR for #29116 to make PR smaller and more readable