Skip to content

Commit 7578a0c

Browse files
devin-petersohnPingviinituutti
authored andcommitted
Remove spurious MultiIndex creation in _set_axis_name (pandas-dev#25371)
* Resovles pandas-dev#25370 * Introduced by pandas-dev#22969
1 parent 70a5db2 commit 7578a0c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pandas/core/generic.py

-1
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,6 @@ def _set_axis_name(self, name, axis=0, inplace=False):
13331333
cat 4
13341334
monkey 2
13351335
"""
1336-
pd.MultiIndex.from_product([["mammal"], ['dog', 'cat', 'monkey']])
13371336
axis = self._get_axis_number(axis)
13381337
idx = self._get_axis(axis).set_names(name)
13391338

0 commit comments

Comments
 (0)