-
-
Couldn't load subscription status.
- Fork 19.2k
REF: handle axis=None case inside DataFrame.any/all to simplify _reduce #35899
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
pandas/core/frame.py
Outdated
| return op(values, axis=axis, skipna=skipna, **kwds) | ||
|
|
||
| def _get_data(axis_matters): | ||
| def _get_data(axis_matters: bool): |
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.
While we're here could we type that it returns a DataFrame?
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.
updated
|
@jreback gentle ping; long-awaited cleanups to DataFrame._reduce come after this |
…ce (pandas-dev#35899) * REF: remove unnecesary try/except * TST: add test for agg on ordered categorical cols (pandas-dev#35630) * TST: resample does not yield empty groups (pandas-dev#10603) (pandas-dev#35799) * revert accidental rebase * REF: handle axis=None cases inside DataFrame.all/any * annotate * dummy commit to force Travis Co-authored-by: Karthik Mathur <[email protected]> Co-authored-by: tkmz-n <[email protected]>
Between this, #35881, and the PR coming after 35881, we'll be able to simplify _reduce quite a bit.