From a5cfa1253fdfa316e0d171c2725aac00fd1c3894 Mon Sep 17 00:00:00 2001 From: Eunseop Jeong Date: Wed, 21 Aug 2019 15:43:03 +0900 Subject: [PATCH] Backport PR #28029: DOC: Change document code prun in a row --- doc/source/user_guide/enhancingperf.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index c15991fabfd3b..fa2fe1ad3989b 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -243,9 +243,9 @@ We've gotten another big improvement. Let's check again where the time is spent: .. ipython:: python - %prun -l 4 apply_integrate_f(df['a'].to_numpy(), - df['b'].to_numpy(), - df['N'].to_numpy()) + %%prun -l 4 apply_integrate_f(df['a'].to_numpy(), + df['b'].to_numpy(), + df['N'].to_numpy()) As one might expect, the majority of the time is now spent in ``apply_integrate_f``, so if we wanted to make anymore efficiencies we must continue to concentrate our