We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bfeec3 commit 1f3b7edCopy full SHA for 1f3b7ed
pandas/core/indexes/multi.py
@@ -893,6 +893,8 @@ def get_level_values(self, level):
893
Returns
894
-------
895
values : Index
896
+ ``values`` is a level of this MultiIndex converted to
897
+ a single :class:`Index` (or subclass thereof).
898
899
Examples
900
---------
pandas/tests/indexes/test_base.py
@@ -1438,7 +1438,7 @@ def test_get_level_values(self):
1438
result = self.strIndex.get_level_values(0)
1439
tm.assert_index_equal(result, self.strIndex)
1440
1441
- # GH 17414
+ # test for name (GH 17414)
1442
index_with_name = self.strIndex.copy()
1443
index_with_name.name = 'a'
1444
result = index_with_name.get_level_values('a')
0 commit comments