File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff 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
366369Additionally, :meth: `~Rolling.apply ` can leverage `Numba <https://numba.pydata.org/ >`__
Original file line number Diff line number Diff 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+
376383Vectorize
377384~~~~~~~~~
378385
You can’t perform that action at this time.
0 commit comments