From bbf34807597acf5e89d212f12c34aad5c8d20f8a Mon Sep 17 00:00:00 2001 From: Erfan Nariman Date: Tue, 18 Aug 2020 01:28:46 +0200 Subject: [PATCH 1/2] Added numba as an argument --- doc/source/user_guide/computation.rst | 3 +++ doc/source/user_guide/enhancingperf.rst | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index d7875e5b8d861..127a078a76666 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -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 `__ diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 24fcb369804c6..bc0f13e068121 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -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 `__ +by calling it as an argument in :meth:`~Rolling.apply`. See `Computation tools +`__ +for an extensive example. + Vectorize ~~~~~~~~~ From c3a15acd3359c1ad8bf8b8a8f3087fe92c453988 Mon Sep 17 00:00:00 2001 From: Erfan Nariman Date: Tue, 1 Sep 2020 18:25:36 +0200 Subject: [PATCH 2/2] Add sphinx ref --- doc/source/user_guide/computation.rst | 4 ++-- doc/source/user_guide/enhancingperf.rst | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index 127a078a76666..151ef36be7c98 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -361,8 +361,8 @@ 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 -~~~~~~~~~~~~~~~~~~~~ +Using the Numba engine +~~~~~~~~~~~~~~~~~~~~~~ .. versionadded:: 1.0 diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index bc0f13e068121..9e101c1a20371 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -377,9 +377,8 @@ Numba as an argument ~~~~~~~~~~~~~~~~~~~~ Additionally, we can leverage the power of `Numba `__ -by calling it as an argument in :meth:`~Rolling.apply`. See `Computation tools -`__ -for an extensive example. +by calling it as an argument in :meth:`~Rolling.apply`. See :ref:`Computation tools +` for an extensive example. Vectorize ~~~~~~~~~