File tree 2 files changed +10
-0
lines changed
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:
361
361
@savefig rolling_apply_ex.png
362
362
s.rolling(window = 60 ).apply(mad, raw = True ).plot(style = ' k' )
363
363
364
+ Using the Numba engine
365
+ ~~~~~~~~~~~~~~~~~~~~~~
366
+
364
367
.. versionadded :: 1.0
365
368
366
369
Additionally, :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.
373
373
374
374
In this example, using Numba was faster than Cython.
375
375
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
+
376
383
Vectorize
377
384
~~~~~~~~~
378
385
You can’t perform that action at this time.
0 commit comments