-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: Series.any/all #52381
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
PERF: Series.any/all #52381
Conversation
@@ -13023,3 +13023,41 @@ def _doc_params(cls): | |||
The required number of valid values to perform the operation. If fewer than | |||
``min_count`` non-NA values are present the result will be NA. | |||
""" | |||
|
|||
|
|||
def make_doc(name: str, ndim: int) -> str: |
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.
This seems only really needed for the Series
case so can it be moved & simplified there?
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.
doing it in series.py requires importing a bunch of currently-private items that the linter complains about. Also before long I'd like todo this with more of the reductions in both Series/DataFrame.
Thanks @jbrockmendel |
* PERF: Series.any/all * mypy fixup * different mypy i guess
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Example based on OP from #26032
We'll be hard-pressed to get trim any more overhead from this, so I'm declaring this as closing #26032.