You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
cudf.to_datetime with format allows date strings with dates beyond month limit
Steps/Code to reproduce bug
In [7]: cudf.to_datetime("2015-02-99", format="%Y-%m-%d")
Out[7]: numpy.datetime64('2015-05-10T00:00:00.000000000')
In [8]: cudf.to_datetime("2015-02-99")
ValueError: Givendatestringnotlikelyadatetime. # OK
Expected behavior
Ideally a ValueError should be raised for Out[7]:
Environment overview (please complete the following information)
mroeschke
changed the title
[BUG] cudf.to_datetime with format allows date strings with dates beyond month limit
[BUG] cudf.to_datetime with format allows date strings with days beyond month limit
Sep 6, 2023
Describe the bug
cudf.to_datetime with
format
allows date strings with dates beyond month limitSteps/Code to reproduce bug
Expected behavior
Ideally a
ValueError
should be raised forOut[7]:
Environment overview (please complete the following information)
docker pull
&docker run
commands usedEnvironment details
Please run and paste the output of the
cudf/print_env.sh
script here, to gather any other relevant environment detailsAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: