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 haison committed Mar 12, 2019
1 parent 37e5870 commit 50ac241
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pandas/core/generic.py
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 50ac241

Please sign in to comment.