We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TimedeltaColumn
None
Describe the bug Extracting a null value from TimedeltaColumn is returning None, it should be cudf.NA.
cudf.NA
Steps/Code to reproduce bug
In [1]: import cudf In [2]: s = cudf.Series([1, 2, 3, None], dtype='datetime64[ns]') In [3]: s Out[3]: 0 1970-01-01 00:00:00.000000001 1 1970-01-01 00:00:00.000000002 2 1970-01-01 00:00:00.000000003 3 <NA> dtype: datetime64[ns] In [4]: s[3] Out[4]: <NA> In [5]: s = cudf.Series([1, 2, 3, None], dtype='timedelta64[ns]') In [6]: s Out[6]: 0 0 days 00:00:00.000000001 1 0 days 00:00:00.000000002 2 0 days 00:00:00.000000003 3 <NA> dtype: timedelta64[ns] In [7]: s[3]
Expected behavior
In [7]: s[3] Out[7]: <NA>
Environment overview (please complete the following information)
Environment details Please run and paste the output of the cudf/print_env.sh script here, to gather any other relevant environment details
cudf/print_env.sh
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
NA
Fix an issue with fetching NA from a TimedeltaColumn (#13853)
1050325
Fixes: #13851 This PR fixes a mistake in `_get_np_scalar_from_timedelta64`, which has to return `cudf.NA` instead of `None`. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Lawrence Mitchell (https://github.com/wence-) - Bradley Dice (https://github.com/bdice) URL: #13853
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
Extracting a null value from
TimedeltaColumn
is returningNone
, it should becudf.NA
.Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
Environment 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: