Skip to content

Commit

Permalink
modified: pandas/core/indexes/multi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shiersansi committed Oct 11, 2023
1 parent ca13b9a commit 4865b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ def levels(self) -> FrozenList:
Examples
--------
>>> index = pd.MultiIndex.from_product([('mammal'),
... ('goat', 'human', 'cat', 'dog')],names=['Category', 'Animals'])
>>> index = pd.MultiIndex.from_product([['mammal'],
... ('goat', 'human', 'cat', 'dog')], names=['Category', 'Animals'])
>>> leg_num = pd.DataFrame(data=(4, 2, 4, 4), index=index, columns=['Legs'])
>>> leg_num.index.levels
FrozenList([['mammal'], ['cat', 'dog', 'goat', 'human']])
Expand Down

0 comments on commit 4865b2a

Please sign in to comment.