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