[BUG] to_datetime fails to parse nanoseconds properly if %f is provided in format #7945
Labels
bug
Something isn't working
doc
Documentation
good first issue
Good for newcomers
Python
Affects Python cuDF API.
Milestone
Describe the bug
As per docs, cudf.to_datetime should parse nanoseconds if '%f' is provided in format. But cudf replaces actual nanoseconds with '000' when '%f' is provided in format. This replacing behavior does not happens if format is not provided.
Steps/Code to reproduce bug
This outputs
Expected behavior
Environment overview (please complete the following information)
docker pull rapidsai/rapidsai:0.18-cuda11.0-base-ubuntu20.04-py3.8
Additional context
Pandas parses nanoseconds correctly irrespective of format
This outputs
The text was updated successfully, but these errors were encountered: