BUG: Timestamp == date match stdlib by jbrockmendel · Pull Request #36131 · pandas-dev/pandas (original) (raw)
- closes #xxxx
- tests added / passed
- passes
black pandas
- passes
git diff upstream/master -u -- "*.py" | flake8 --diff
- whatsnew entry
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