BUG: Timestamp == date match stdlib by jbrockmendel · Pull Request #36131 · pandas-dev/pandas (original) (raw)

ATM we have one reasonable behavior Timestamp("2020-09-04") == date(2020, 9, 4) and two un-reasonable behaviors: ``Timestamp("2020-09-04").tz_localize("US/Pacific") == date(2020, 9, 4), Timestamp.now() == Timestamp.now().date()`. Since the stdlib datetime doesnt consider `datetime(2020, 9, 4) == date(2020, 9, 4)`, this follows the stdlib and considers them never equal.

I'm still getting one test failure locally.

cc @mroeschke