Skip to content

Commit

Permalink
Remove spurious MultiIndex creation in _set_axis_name (pandas-dev#2…
Browse files Browse the repository at this point in the history
…5371)

* Resovles pandas-dev#25370
* Introduced by pandas-dev#22969
  • Loading branch information
devin-petersohn authored and Pingviinituutti committed Feb 28, 2019
1 parent 70a5db2 commit 7578a0c
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 7578a0c

Please sign in to comment.