Skip to content

Commit d60f490

Browse files
committed
DOC: minor doc corrections
1 parent bc2fa16 commit d60f490

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

ci/requirements-3.5_DOC.run

+1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ sqlalchemy
1818
numexpr
1919
bottleneck
2020
statsmodels
21+
xarray
2122
pyqt=4.11.4

doc/source/computation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ can even be omitted:
557557
correls.loc['2002-09-22':]
558558
559559
You can efficiently retrieve the time series of correlations between two
560-
columns using ``.loc`` indexing:
560+
columns by reshaping and indexing:
561561

562562
.. ipython:: python
563563
:suppress:
@@ -567,7 +567,7 @@ columns using ``.loc`` indexing:
567567
.. ipython:: python
568568
569569
@savefig rolling_corr_pairwise_ex.png
570-
correls.loc[:, ('A', 'C')].plot()
570+
correls.unstack(1)[('A', 'C')].plot()
571571
572572
.. _stats.aggregate:
573573

doc/source/dsintro.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -953,8 +953,8 @@ datatype support, and manipulation routines. As a result, supporting efficient i
953953
routines for ``Series``, ``DataFrame`` and ``Panel`` has contributed to an increasingly fragmented and
954954
difficult-to-understand codebase.
955955

956-
The 3-d structure of a ``Panel`` is much less common for many types of data analysis,
957-
than the 1-d of the ``Series`` or the 2-D of the ``DataFrame``. Going forward it makes sense for
956+
The 3-D structure of a ``Panel`` is much less common for many types of data analysis,
957+
than the 1-D of the ``Series`` or the 2-D of the ``DataFrame``. Going forward it makes sense for
958958
pandas to focus on these areas exclusively.
959959

960960
Oftentimes, one can simply use a MultiIndex ``DataFrame`` for easily working with higher dimensional data.

doc/source/whatsnew/v0.20.0.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ Deprecate Panel
435435
^^^^^^^^^^^^^^^
436436

437437
``Panel`` is deprecated and will be removed in a future version. The recommended way to represent 3-D data are
438-
with a ``MultiIndex``on a ``DataFrame`` via the :meth:`~Panel.to_frame` or with the `xarray package <http://xarray.pydata.org/en/stable/>`__. Pandas
438+
with a ``MultiIndex`` on a ``DataFrame`` via the :meth:`~Panel.to_frame` or with the `xarray package <http://xarray.pydata.org/en/stable/>`__. Pandas
439439
provides a :meth:`~Panel.to_xarray` method to automate this conversion. See the documentation :ref:`Deprecate Panel <dsintro.deprecate_panel>`. (:issue:`13563`).
440440

441441
.. ipython:: python
@@ -874,8 +874,8 @@ Window Binary Corr/Cov operations return a MultiIndex DataFrame
874874

875875
A binary window operation, like ``.corr()`` or ``.cov()``, when operating on a ``.rolling(..)``, ``.expanding(..)``, or ``.ewm(..)`` object,
876876
will now return a 2-level ``MultiIndexed DataFrame`` rather than a ``Panel``, as ``Panel`` is now deprecated,
877-
see :ref:`here <_whatsnew_0200.api_breaking.deprecate_panel>`. These are equivalent in function,
878-
but MultiIndexed ``DataFrame`` s enjoy more support in pandas.
877+
see :ref:`here <whatsnew_0200.api_breaking.deprecate_panel>`. These are equivalent in function,
878+
but a MultiIndexed ``DataFrame`` enjoys more support in pandas.
879879
See the section on :ref:`Windowed Binary Operations <stats.moments.binary>` for more information. (:issue:`15677`)
880880

881881
.. ipython:: python

0 commit comments

Comments
 (0)