From c0bdff45871bdb38a78c57608fd270e94412c511 Mon Sep 17 00:00:00 2001 From: Max Mikhaylov Date: Tue, 24 Apr 2018 12:42:53 -0400 Subject: [PATCH] Fixed typo I believe it should be either "Then another Python operation ``dfmi_with_one['second']`` happens." or "Then another Python operation ``dfmi_with_one['second']`` selects the series indexed by ``'second'``." ,not "Then another Python operation ``dfmi_with_one['second']`` selects the series indexed by ``'second'`` happens." --- doc/source/indexing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 750b260c7f228..66d183d910000 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -1773,7 +1773,7 @@ These both yield the same results, so which should you use? It is instructive to of operations on these and why method 2 (``.loc``) is much preferred over method 1 (chained ``[]``). ``dfmi['one']`` selects the first level of the columns and returns a DataFrame that is singly-indexed. -Then another Python operation ``dfmi_with_one['second']`` selects the series indexed by ``'second'`` happens. +Then another Python operation ``dfmi_with_one['second']`` selects the series indexed by ``'second'``. This is indicated by the variable ``dfmi_with_one`` because pandas sees these operations as separate events. e.g. separate calls to ``__getitem__``, so it has to treat them as linear operations, they happen one after another.