Skip to content

Commit fa83859

Browse files
committed
DOC: minor updates in faq
1 parent 8f4a321 commit fa83859

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Frequently Asked Questions (FAQ)
2828
.. _df-memory-usage:
2929

3030
DataFrame memory usage
31-
~~~~~~~~~~~~~~~~~~~~~~
31+
----------------------
3232
As of pandas version 0.15.0, the memory usage of a dataframe (including
3333
the index) is shown when accessing the ``info`` method of a dataframe. A
3434
configuration option, ``display.memory_usage`` (see :ref:`options`),

doc/source/gotchas.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,12 @@ Reindex potentially changes underlying Series dtype
343343

344344
The use of ``reindex_like`` can potentially change the dtype of a ``Series``.
345345

346-
.. code-block:: python
346+
.. ipython:: python
347347
348-
series = pandas.Series([1, 2, 3])
349-
x = pandas.Series([True])
348+
series = Series([1, 2, 3])
349+
x = Series([True])
350350
x.dtype
351-
x = pandas.Series([True]).reindex_like(series)
351+
x = Series([True]).reindex_like(series)
352352
x.dtype
353353
354354
This is because ``reindex_like`` silently inserts ``NaNs`` and the ``dtype``

0 commit comments

Comments
 (0)