We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477fed5 commit 4ce3e30Copy full SHA for 4ce3e30
doc/source/user_guide/advanced.rst
@@ -260,7 +260,9 @@ You don't have to specify all levels of the ``MultiIndex`` by passing only the
260
first elements of the tuple. For example, you can use "partial" indexing to
261
get all elements with ``bar`` in the first level as follows:
262
263
-df.loc['bar']
+.. ipython:: python
264
+
265
+ df.loc['bar']
266
267
This is a shortcut for the slightly more verbose notation ``df.loc[('bar',),]`` (equivalent
268
to ``df.loc['bar',]`` in this example).
0 commit comments