Skip to content

Commit

Permalink
Remove spurious MultiIndex creation in _set_axis_name (#25371)
Browse files Browse the repository at this point in the history
* Resovles #25370
* Introduced by #22969
  • Loading branch information
devin-petersohn authored and jreback committed Feb 19, 2019
1 parent 3d3093a commit 590cb54
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 @@ -1333,7 +1333,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 590cb54

Please sign in to comment.