Skip to content

Commit

Permalink
Backport PR pandas-dev#25371: Remove spurious MultiIndex creation in …
Browse files Browse the repository at this point in the history
…`_set_axis_name`
  • Loading branch information
devin-petersohn authored and MeeseeksDev[bot] committed Feb 19, 2019
1 parent 82a4949 commit 357daab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,6 @@ def _set_axis_name(self, name, axis=0, inplace=False):
cat 4
monkey 2
"""
pd.MultiIndex.from_product([["mammal"], ['dog', 'cat', 'monkey']])
axis = self._get_axis_number(axis)
idx = self._get_axis(axis).set_names(name)

Expand Down

0 comments on commit 357daab

Please sign in to comment.