Skip to content

Commit df90c0c

Browse files
committed
okexcept in enhancingperf.rst
1 parent 25e6462 commit df90c0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/source/user_guide/enhancingperf.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Let's take a look and see where the time is spent during this operation
8181
using the `prun ipython magic function <https://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-prun>`__:
8282

8383
.. ipython:: python
84+
:okexcept:
8485
8586
# most time consuming 4 calls
8687
%prun -l 4 df.apply(lambda x: integrate_f(x["a"], x["b"], x["N"]), axis=1) # noqa E999
@@ -163,6 +164,7 @@ the index and the series (three times for each row). These Python function calls
163164
can be improved by passing an ``np.ndarray``.
164165

165166
.. ipython:: python
167+
:okexcept:
166168
167169
%prun -l 4 df.apply(lambda x: integrate_f_typed(x["a"], x["b"], x["N"]), axis=1)
168170
@@ -217,6 +219,7 @@ The majority of the time is now spent in ``apply_integrate_f``. Disabling Cython
217219
and ``wraparound`` checks can yield more performance.
218220

219221
.. ipython:: python
222+
:okexcept:
220223
221224
%prun -l 4 apply_integrate_f(df["a"].to_numpy(), df["b"].to_numpy(), df["N"].to_numpy())
222225

0 commit comments

Comments
 (0)