File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Frequently Asked Questions (FAQ)
28
28
.. _df-memory-usage :
29
29
30
30
DataFrame memory usage
31
- ~~~~~~~~~~~~~~~~~~~~~~
31
+ ----------------------
32
32
As of pandas version 0.15.0, the memory usage of a dataframe (including
33
33
the index) is shown when accessing the ``info `` method of a dataframe. A
34
34
configuration option, ``display.memory_usage `` (see :ref: `options `),
Original file line number Diff line number Diff line change @@ -343,12 +343,12 @@ Reindex potentially changes underlying Series dtype
343
343
344
344
The use of ``reindex_like `` can potentially change the dtype of a ``Series ``.
345
345
346
- .. code-block :: python
346
+ .. ipython :: python
347
347
348
- series = pandas. Series([1 , 2 , 3 ])
349
- x = pandas. Series([True ])
348
+ series = Series([1 , 2 , 3 ])
349
+ x = Series([True ])
350
350
x.dtype
351
- x = pandas. Series([True ]).reindex_like(series)
351
+ x = Series([True ]).reindex_like(series)
352
352
x.dtype
353
353
354
354
This is because ``reindex_like `` silently inserts ``NaNs `` and the ``dtype ``
You can’t perform that action at this time.
0 commit comments