Skip to content

Commit 6c3a3dd

Browse files
authored
Fix multiple identical check (pandas-dev#42828)
1 parent b57ec1a commit 6c3a3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3568,7 +3568,7 @@ def _union(self, other, sort) -> MultiIndex:
35683568
other, result_names = self._convert_can_do_setop(other)
35693569
if (
35703570
any(-1 in code for code in self.codes)
3571-
and any(-1 in code for code in self.codes)
3571+
and any(-1 in code for code in other.codes)
35723572
or self.has_duplicates
35733573
or other.has_duplicates
35743574
):

0 commit comments

Comments
 (0)