Skip to content

CLN: Refactor groupby._make_wrapper #48400

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

Merged
merged 6 commits into from
Sep 12, 2022
Merged

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach commented Sep 5, 2022

Currently keeping the docs the same, plan to make groupby-specific docstrings in the future. Note that most of the SeriesGroupBy docs don't make it into the documentation, I've opened #48399. The only change from a user-perspective here should be that Jupyter / IDEs can now get the correct signature (instead of *args, **kwargs).

image

image

)


def test_frame_consistency(request, groupby_func):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: Doing something like this for the entire API would be really cool. It would help the ensure when adding/modifying/deprecating methods & their signatures that consistency remains.

@rhshadrach rhshadrach requested a review from mroeschke September 7, 2022 21:15
Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM. Could use another set of eyes too, but happy to merge if there's no other comments.

@mroeschke mroeschke added this to the 1.6 milestone Sep 12, 2022
@mroeschke mroeschke merged commit d1485e7 into pandas-dev:main Sep 12, 2022
@mroeschke
Copy link
Member

Awesome! A lot more straightforward, thanks @rhshadrach

@rhshadrach rhshadrach deleted the less_magic branch September 12, 2022 22:20
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
* CLN: Refactor groupby._make_wrapper

* Remove type: ignore

* Revert behavior change for corrwith; fix skew and mad

* Add docstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLN: Refactor groupby's _make_wrapper
2 participants