Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust lines to within size limit
  • Loading branch information
tlaytongoogle committed Dec 3, 2019
commit b27e30faa7a866899ac2081c275cb06fcae3062e
3 changes: 2 additions & 1 deletion pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4334,7 +4334,8 @@ def equals(self, other):
return other.equals(self)

if isinstance(other, ABCMultiIndex):
if not is_object_dtype(self.dtype): # d-level MultiIndex can equal d-tuple Index
# d-level MultiIndex can equal d-tuple Index
if not is_object_dtype(self.dtype):
if self.nlevels != other.nlevels:
return False

Expand Down
3 changes: 2 additions & 1 deletion pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3147,7 +3147,8 @@ def equals(self, other):
return False

if not isinstance(other, MultiIndex):
if not is_object_dtype(other.dtype): # d-level MultiIndex can equal d-tuple Index
# d-level MultiIndex can equal d-tuple Index
if not is_object_dtype(other.dtype):
if self.nlevels != other.nlevels:
return False

Expand Down