From 590cb547d5ca19b7fbbfb26d6bfd44b00061fab3 Mon Sep 17 00:00:00 2001 From: Devin Petersohn Date: Tue, 19 Feb 2019 05:12:34 -0800 Subject: [PATCH] Remove spurious MultiIndex creation in `_set_axis_name` (#25371) * Resovles #25370 * Introduced by #22969 --- pandas/core/generic.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3a73861086bed..6e79c02d7dbdd 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -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)