Skip to content

Added numba as an argument #35778

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 3 commits into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/source/user_guide/computation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ compute the mean absolute deviation on a rolling basis:
@savefig rolling_apply_ex.png
s.rolling(window=60).apply(mad, raw=True).plot(style='k')

Numba as an argument
~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 1.0

Additionally, :meth:`~Rolling.apply` can leverage `Numba <https://numba.pydata.org/>`__
Expand Down
8 changes: 8 additions & 0 deletions doc/source/user_guide/enhancingperf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,14 @@ nicer interface by passing/returning pandas objects.

In this example, using Numba was faster than Cython.

Numba as an argument
~~~~~~~~~~~~~~~~~~~~

Additionally, we can leverage the power of `Numba <https://numba.pydata.org/>`__
by calling it as an argument in :meth:`~Rolling.apply`. See `Computation tools
<https://pandas.pydata.org/pandas-docs/stable/user_guide/computation.html#rolling-apply>`__
for an extensive example.

Vectorize
~~~~~~~~~

Expand Down