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
Is your feature request related to a problem? Please describe.
When trying to construct a series, index, or other cuDF object, we should be able to include cudf.NA in the data and end up with the right series.
Describe the solution you'd like
Plumb cuDF so that it masks according to cudf.NA as opposed to None:
x = cudf.Series([1, cudf.NA, 3])
# [1, <NA>, 3]
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
>>> x= cudf.Series([1, cudf.NA, 3])
pyarrow.lib.ArrowInvalid: Could not convert <NA> with type _NAType: did not recognize Python value type when inferring an Arrow data type
The text was updated successfully, but these errors were encountered:
Closes#8287
PyArrow knows how to handle the `pd.NA` singleton and knows it represents nulls if `from_pandas=True` during array construction. There's not an option to choose what sentinel or value is used to represent null however and the 'detection' of which values are exactly this object is implemented at the c++ level in pyarrow, limiting our options for 'tricking' pyarrow into seeing `cudf.NA` as null.
As such it is probably best that our `NA` be identically the pandas `NA`. This also makes `cudf.NA is pd.NA` return true, which is probably what we want as well.
Authors:
- https://github.com/brandon-b-miller
Approvers:
- Marlene (https://github.com/marlenezw)
- Michael Wang (https://github.com/isVoid)
URL: #8442
Is your feature request related to a problem? Please describe.
When trying to construct a series, index, or other cuDF object, we should be able to include
cudf.NA
in the data and end up with the right series.Describe the solution you'd like
Plumb cuDF so that it masks according to
cudf.NA
as opposed toNone
:Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
The text was updated successfully, but these errors were encountered: