Skip to content

Commit 9a78967

Browse files
committed
BUG: Remove special-casing for Python date objects in DatetimeIndex
1 parent 957d33a commit 9a78967

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/indexes/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6289,8 +6289,6 @@ def _should_compare(self, other: Index) -> bool:
62896289
# found. Without this fix False and True would be treated as 0 and 1
62906290
# respectively.
62916291
return False
6292-
if self.dtype.kind == "M" and other.inferred_type == "date":
6293-
return False
62946292

62956293
dtype = _unpack_nested_dtype(other)
62966294
return (

0 commit comments

Comments
 (0)