Skip to content

CLN: _wrap_applied_output #36160

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 2 commits into from
Sep 6, 2020
Merged

Conversation

rhshadrach
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

All if statements above the changed block return, so we can remove the else's and flatten out the structure a bit.

@rhshadrach rhshadrach changed the title Clean wrap applied CLN: _wrap_applied_output Sep 6, 2020
@rhshadrach rhshadrach added Apply Apply, Aggregate, Transform, Map Clean Groupby labels Sep 6, 2020
@rhshadrach rhshadrach added this to the 1.2 milestone Sep 6, 2020
@rhshadrach
Copy link
Member Author

Failure is unrelated.

@jreback jreback merged commit b431e9a into pandas-dev:master Sep 6, 2020
@jreback
Copy link
Contributor

jreback commented Sep 6, 2020

thanks @rhshadrach

wouldn't be averse to simplifying this function even more with have some helper functions (and would location them in another module if possible as free functions and just passing in what you need), rather than locating them on the groupby objects themselves (e.g. to make this even easier to follow the cases)

jbrockmendel pushed a commit to jbrockmendel/pandas that referenced this pull request Sep 8, 2020
@rhshadrach rhshadrach deleted the clean_wrap_applied branch September 10, 2020 00:07
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Clean Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants