File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ including other versions of pandas.
15
15
Fixed regressions
16
16
~~~~~~~~~~~~~~~~~
17
17
- Fixed regression in :meth: `merge ` with integer and ``NaN `` keys failing with ``outer `` merge (:issue: `43550 `)
18
+ - Fixed performance regression in :meth: `MultiIndex.equals ` (:issue: `43549 `)
18
19
-
19
20
20
21
.. ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -3544,8 +3544,13 @@ def equals(self, other: object) -> bool:
3544
3544
if len (self_values ) == 0 and len (other_values ) == 0 :
3545
3545
continue
3546
3546
3547
- if not array_equivalent (self_values , other_values ):
3548
- return False
3547
+ if not isinstance (self_values , np .ndarray ):
3548
+ # i.e. ExtensionArray
3549
+ if not self_values .equals (other_values ):
3550
+ return False
3551
+ else :
3552
+ if not array_equivalent (self_values , other_values ):
3553
+ return False
3549
3554
3550
3555
return True
3551
3556
You can’t perform that action at this time.
0 commit comments