Skip to content

Commit 5783fd2

Browse files
committed
fix template and remove okexcept
1 parent eab787b commit 5783fd2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

doc/source/index.rst.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ programming language.
113113
:titlesonly:
114114

115115
{{ single_doc[:-4] }}
116-
{% elif single_doc and single_doc.count('.') <= 1 %}
116+
{% elif single_doc and ((single_doc.count('.') <= 1) or ('tseries' in single_doc)) -%}
117117
.. autosummary::
118118
:toctree: reference/api/
119119

doc/source/user_guide/enhancingperf.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ 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:
8584
8685
# most time consuming 4 calls
8786
%prun -l 4 df.apply(lambda x: integrate_f(x['a'], x['b'], x['N']), axis=1)
@@ -164,7 +163,6 @@ the index and the series (three times for each row). These Python function calls
164163
can be improved by passing an ``np.ndarray``.
165164

166165
.. ipython:: python
167-
:okexcept:
168166
169167
%prun -l 4 df.apply(lambda x: integrate_f_typed(x['a'], x['b'], x['N']), axis=1)
170168
@@ -205,7 +203,6 @@ Since ``apply_integrate_f`` is typed to accept an ``np.ndarray``, :meth:`Series.
205203
calls are needed to utilize this function.
206204

207205
.. ipython:: python
208-
:okexcept:
209206
210207
%timeit apply_integrate_f(df['a'].to_numpy(), df['b'].to_numpy(), df['N'].to_numpy())
211208
@@ -220,7 +217,6 @@ The majority of the time is now spent in ``apply_integrate_f``. Disabling Cython
220217
and ``wraparound`` checks can yield more performance.
221218

222219
.. ipython:: python
223-
:okexcept:
224220
225221
%prun -l 4 apply_integrate_f(df['a'].to_numpy(), df['b'].to_numpy(), df['N'].to_numpy())
226222
@@ -256,7 +252,6 @@ and ``wraparound`` checks can yield more performance.
256252
...:
257253

258254
.. ipython:: python
259-
:okexcept:
260255
261256
%timeit apply_integrate_f_wrap(df['a'].to_numpy(), df['b'].to_numpy(), df['N'].to_numpy())
262257
@@ -534,7 +529,6 @@ name in an expression.
534529
isn't defined in that context.
535530

536531
.. ipython:: python
537-
:okexcept:
538532
539533
a, b = 1, 2
540534
pd.eval("@a + b")

0 commit comments

Comments
 (0)