Skip to content

Commit d00a951

Browse files
committed
BUG: Remove special-casing for Python date objects in DatetimeIndex
1 parent ea64944 commit d00a951

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/core/indexes/base.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6288,10 +6288,6 @@ def _should_compare(self, other: Index) -> bool:
62886288
# respectively.
62896289
return False
62906290

6291-
# GH#62158
6292-
if self.dtype.kind == "M" and other.inferred_type == "date":
6293-
return False
6294-
62956291
dtype = _unpack_nested_dtype(other)
62966292
return (
62976293
self._is_comparable_dtype(dtype)

0 commit comments

Comments
 (0)