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 @@ -3517,8 +3517,13 @@ def equals(self, other: object) -> bool:
3517
3517
if len (self_values ) == 0 and len (other_values ) == 0 :
3518
3518
continue
3519
3519
3520
- if not array_equivalent (self_values , other_values ):
3521
- return False
3520
+ if not isinstance (self_values , np .ndarray ):
3521
+ # i.e. ExtensionArray
3522
+ if not self_values .equals (other_values ):
3523
+ return False
3524
+ else :
3525
+ if not array_equivalent (self_values , other_values ):
3526
+ return False
3522
3527
3523
3528
return True
3524
3529
You can’t perform that action at this time.
0 commit comments