Behaviour of comparisons between pandas.Timestamp
and datetime.date
objects changes in Pandas v2.0
#934
Labels
bug
Something isn't working
Milestone
Pandas v2.0 changes the behaviour of equality comparisons of
pandas.Timestamp
anddatetime.date
objects to always compare as unequal (pandas-dev/pandas#36131). For exampleoutputs
True
in Pandas v1.2.2 andFalse
in v2.0.0.This causes the assert in
tests/test_control_order_of_events.py::test_control_of_ordering_in_the_day
TLOmodel/tests/test_control_order_of_events.py
Lines 92 to 97 in 5655119
to fail when running with Pandas v2.0.0 as the earlier comparison with a
Date
object (corresponding to apandas.Timestamp
) no longer behaves as expected.The text was updated successfully, but these errors were encountered: