-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: _wrap_applied_output #36260
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
CLN: _wrap_applied_output #36260
Conversation
else: | ||
result = DataFrame(values, index=key_index, columns=[self._selection]) | ||
self._insert_inaxis_grouper_inplace(result) | ||
return result |
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 like this line isnt covered (the equivalent line isnt covered in master, so not necessarily a problem for this PR). any chance it is unreachable and can be removed?
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.
Added test to cover it.
Changing |
@jbrockmendel: Thanks for the review. Regarding the rearrangement, I thought it was better to separate "not a series" and "is a series" cases. Before they were (needlessly IMO) intertwined. |
thanks @rhshadrach yeah groupby has built up over the years to be long / complicated functions, thanks for working on this. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff