-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Add numba engine to rolling/expanding.std/var #44461
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
mroeschke
commented
Nov 15, 2021
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
Failure due to codecov not being able to tell the numba decorated function is inherently tested. |
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.
is the arm failure real?
@@ -212,7 +212,8 @@ Other enhancements | |||
- :meth:`.GroupBy.mean` now supports `Numba <http://numba.pydata.org/>`_ execution with the ``engine`` keyword (:issue:`43731`) | |||
- :meth:`Timestamp.isoformat`, now handles the ``timespec`` argument from the base :class:``datetime`` class (:issue:`26131`) | |||
- :meth:`NaT.to_numpy` ``dtype`` argument is now respected, so ``np.timedelta64`` can be returned (:issue:`44460`) | |||
- | |||
- :meth:`.Rolling.var`, :meth:`.Expanding.var`, :meth:`.Rolling.std`, :meth:`.Expanding.std` now support `Numba <http://numba.pydata.org/>`_ execution with the ``engine`` keyword (:issue:`44461`) |
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.
at some point should group these doc-string changes together (maybe into a separate section ok too but not requried)
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.
Yeah once I add median I can group these better
nv.validate_window_func("std", args, kwargs) | ||
if maybe_use_numba(engine): | ||
if self.method == "table": | ||
raise NotImplementedError("std not supported with method='table'") |
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.
hit this in tests?
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.
nv.validate_window_func("var", args, kwargs) | ||
if maybe_use_numba(engine): | ||
if self.method == "table": | ||
raise NotImplementedError("var not supported with method='table'") |
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.
same question
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.
It's this flaky test
|
thanks @mroeschke |