Skip to content

Commit d1ace10

Browse files
Max Mikhaylovjreback
Max Mikhaylov
authored andcommitted
Fixed typo (#20811)
1 parent 8bee97a commit d1ace10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/indexing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ These both yield the same results, so which should you use? It is instructive to
17731773
of operations on these and why method 2 (``.loc``) is much preferred over method 1 (chained ``[]``).
17741774

17751775
``dfmi['one']`` selects the first level of the columns and returns a DataFrame that is singly-indexed.
1776-
Then another Python operation ``dfmi_with_one['second']`` selects the series indexed by ``'second'`` happens.
1776+
Then another Python operation ``dfmi_with_one['second']`` selects the series indexed by ``'second'``.
17771777
This is indicated by the variable ``dfmi_with_one`` because pandas sees these operations as separate events.
17781778
e.g. separate calls to ``__getitem__``, so it has to treat them as linear operations, they happen one after another.
17791779

0 commit comments

Comments
 (0)