We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97c61e8 commit 51f3d03Copy full SHA for 51f3d03
pandas/core/indexes/base.py
@@ -6036,12 +6036,13 @@ def get_indexer_non_unique(
6036
6037
# Note: _maybe_downcast_for_indexing ensures we never get here
6038
# with MultiIndex self and non-Multi target
6039
- tgt_values = target._get_engine_target()
6040
if self._is_multi and target._is_multi:
6041
engine = self._engine
6042
# Item "IndexEngine" of "Union[IndexEngine, ExtensionEngine]" has
6043
# no attribute "_extract_level_codes"
6044
tgt_values = engine._extract_level_codes(target) # type: ignore[union-attr]
+ else:
6045
+ tgt_values = target._get_engine_target()
6046
6047
indexer, missing = self._engine.get_indexer_non_unique(tgt_values)
6048
return ensure_platform_int(indexer), ensure_platform_int(missing)
0 commit comments