Skip to content

Commit 948f176

Browse files
committed
Cleanup
Signed-off-by: Fabian Haase <[email protected]>
1 parent f440c63 commit 948f176

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

doc/source/basics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,11 @@ To evaluate single-element pandas objects in a boolean context, use the method
313313

314314
.. code-block:: python
315315
316-
>>> df and df2 # noqa: E999
316+
>>> df and df2
317317
318318
These will both raise errors, as you are trying to compare multiple values.
319319

320-
.. code-block:: console
320+
.. code-block:: python-traceback
321321
322322
ValueError: The truth value of an array is ambiguous. Use a.empty, a.any() or a.all().
323323

doc/source/contributing_docstring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ infinitive verb.
189189

190190
.. code-block:: python
191191
192-
def astype(dtype): # noqa: F811
192+
def astype(dtype):
193193
"""
194194
Casts Series type.
195195

doc/source/enhancingperf.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,10 @@ take the plain Python code from above and annotate with the ``@jit`` decorator.
363363
Note that we directly pass NumPy arrays to the Numba function. ``compute_numba`` is just a wrapper that provides a
364364
nicer interface by passing/returning pandas objects.
365365

366-
>>> %timeit compute_numba(df)
367-
1000 loops, best of 3: 798 us per loop
366+
.. code-block:: ipython
367+
368+
In [4]: %timeit compute_numba(df)
369+
1000 loops, best of 3: 798 us per loop
368370
369371
In this example, using Numba was faster than Cython.
370372

doc/source/gotchas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Occasionally you may have to deal with data that were created on a machine with
316316
a different byte order than the one on which you are running Python. A common
317317
symptom of this issue is an error like:
318318

319-
.. code-block:: console
319+
.. code-block:: python-traceback
320320
321321
Traceback
322322
...

doc/source/missing_data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ rules introduced in the table below.
727727
:header: "data type", "Cast to"
728728
:widths: 40, 40
729729

730-
integer, float
730+
integer, float
731731
boolean, object
732732
float, no cast
733733
object, no cast

0 commit comments

Comments
 (0)