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 0f7f3b8 commit 3b38f8dCopy full SHA for 3b38f8d
pandas/core/indexes/base.py
@@ -2,7 +2,6 @@
2
3
from collections import abc
4
from datetime import (
5
- date,
6
datetime,
7
)
8
import functools
@@ -6291,18 +6290,6 @@ def _should_compare(self, other: Index) -> bool:
6291
6290
# respectively.
6292
return False
6293
6294
- # GH#62158
6295
- if (
6296
- self.dtype.kind == "M"
6297
- and isinstance(other, Index)
6298
- and other.dtype == _dtype_obj
6299
- and all(
6300
- isinstance(x, date) and not isinstance(x, datetime)
6301
- for x in other._values
6302
- )
6303
- ):
6304
- return False
6305
-
6306
dtype = _unpack_nested_dtype(other)
6307
return (
6308
self._is_comparable_dtype(dtype)
0 commit comments