Skip to content

Commit c9d443f

Browse files
erfannarimanKevin D Smith
authored and
Kevin D Smith
committed
Added numba as an argument (pandas-dev#35778)
1 parent e6ad467 commit c9d443f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doc/source/user_guide/computation.rst

+3
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ compute the mean absolute deviation on a rolling basis:
361361
@savefig rolling_apply_ex.png
362362
s.rolling(window=60).apply(mad, raw=True).plot(style='k')
363363
364+
Using the Numba engine
365+
~~~~~~~~~~~~~~~~~~~~~~
366+
364367
.. versionadded:: 1.0
365368

366369
Additionally, :meth:`~Rolling.apply` can leverage `Numba <https://numba.pydata.org/>`__

doc/source/user_guide/enhancingperf.rst

+7
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,13 @@ nicer interface by passing/returning pandas objects.
373373
374374
In this example, using Numba was faster than Cython.
375375

376+
Numba as an argument
377+
~~~~~~~~~~~~~~~~~~~~
378+
379+
Additionally, we can leverage the power of `Numba <https://numba.pydata.org/>`__
380+
by calling it as an argument in :meth:`~Rolling.apply`. See :ref:`Computation tools
381+
<stats.rolling_apply>` for an extensive example.
382+
376383
Vectorize
377384
~~~~~~~~~
378385

0 commit comments

Comments
 (0)