-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle datetime selection in cuDF interface #6407
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6407 +/- ##
==========================================
+ Coverage 88.48% 88.50% +0.01%
==========================================
Files 323 323
Lines 68469 68531 +62
==========================================
+ Hits 60588 60650 +62
Misses 7881 7881 ☔ View full report in Codecov by Sentry. |
I'm not sure I follow why it does not support datetime selection: import cudf
from datetime import datetime
cdf = cudf.DataFrame(cudf.date_range("2020-01-01", "2021-01-01"))
cdf < datetime(2020, 2, 1) Though, I can see this fails: |
Hmm, internally we do perform the comparisons on the underlying arrays I think. Here we may have to change that. |
Here's the traceback I'm seeing:
|
Actually, sorry, the traceback is this:
|
What is your cudf version? |
Also thought it was that, but just tested with 2024.10.1 and still see the first error I posted. |
I'm having a hard time creating a |
It's ordering dependent!
I can just flip the conditions. |
Reproducer
|
cuDF does not properly support datetime comparisons so for now we have to cast the datetimes to integers to safely do the comparisons.