Skip to content

Commit 4ce3e30

Browse files
authored
Update advanced.rst (#34950)
1 parent 477fed5 commit 4ce3e30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/source/user_guide/advanced.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ You don't have to specify all levels of the ``MultiIndex`` by passing only the
260260
first elements of the tuple. For example, you can use "partial" indexing to
261261
get all elements with ``bar`` in the first level as follows:
262262

263-
df.loc['bar']
263+
.. ipython:: python
264+
265+
df.loc['bar']
264266
265267
This is a shortcut for the slightly more verbose notation ``df.loc[('bar',),]`` (equivalent
266268
to ``df.loc['bar',]`` in this example).

0 commit comments

Comments
 (0)