Skip to content

Commit 5394be3

Browse files
authored
Update multi.py
1 parent 312bd44 commit 5394be3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/indexes/multi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
)
4848

4949
from pandas.core.dtypes.cast import (
50-
coerce_indexer_dtype,
51-
convert_dtypes,
50+
coerce_indexer_dtype
5251
)
5352
from pandas.core.dtypes.common import (
5453
ensure_int64,
@@ -2220,14 +2219,14 @@ def get_index_data(self, data_index, column_name, other, search_self=False):
22202219
if search_self is True:
22212220
if column_name in self.names:
22222221
Index_position = self.names.index(column_name)
2223-
NA_type = convert_dtypes(self.levels[Index_position].values)
2222+
NA_type = self.levels[Index_position].dtype
22242223
data = Index([NA] * data_index.size, dtype=NA_type)
22252224
return data
22262225

22272226
for o in other:
22282227
if o is not data_index and column_name in o.names:
22292228
Index_position = o.names.index(column_name)
2230-
NA_type = convert_dtypes(self.levels[Index_position].values)
2229+
NA_type = o.levels[Index_position].dtype
22312230
data = Index([NA] * data_index.size, dtype=NA_type)
22322231
return data
22332232

0 commit comments

Comments
 (0)