We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4079c commit 75e2c2bCopy full SHA for 75e2c2b
pandas/core/indexes/base.py
@@ -5471,10 +5471,9 @@ def equals(self, other: Any) -> bool:
5471
# quickly return if the lengths are different
5472
return False
5473
5474
- if (
5475
- (isinstance(self.dtype, StringDtype) or is_object_dtype(self.dtype)) and
5476
- (isinstance(other.dtype, StringDtype) or is_object_dtype(other.dtype))
5477
- ):
+ if (isinstance(self.dtype, StringDtype) or is_object_dtype(self.dtype)) and (
+ isinstance(other.dtype, StringDtype) or is_object_dtype(other.dtype)
+ ):
5478
return array_equivalent(self._values, other._values)
5479
5480
if (
0 commit comments