-
Notifications
You must be signed in to change notification settings - Fork 989
Open
Labels
PythonAffects Python cuDF API.Affects Python cuDF API.bugSomething isn't workingSomething isn't workingcudf.pandasIssues specific to cudf.pandasIssues specific to cudf.pandas
Description
Describe the bug
In pandas compatibility mode, columns of float type render null entries as "nan" instead of NA.
The value is being produced here. The current rendering seems to have been selected for a specific reason in #19478, perhaps @galipremsagar will remember why. Otherwise we can just open a PR changing that and see what breaks, I'm assuming it'll be one of the pandas tests that we reenabled in that PR and then we can see what we need to do to make the rendering decision more precise.
Steps/Code to reproduce bug
>>> import pandas as pd
>>> import cudf
>>> pd.Series([1, pd.NA])
0 1
1 <NA>
dtype: object
>>> with cudf.option_context("mode.pandas_compatible", True):
... cudf.Series([1, None], dtype="float")
...
0 1.0
1 nan
dtype: float64
>>> with cudf.option_context("mode.pandas_compatible", False):
... cudf.Series([1, None], dtype="float")
...
0 1.0
1 <NA>
dtype: float64Expected behavior
The rendering should be the same as pandas.
Metadata
Metadata
Assignees
Labels
PythonAffects Python cuDF API.Affects Python cuDF API.bugSomething isn't workingSomething isn't workingcudf.pandasIssues specific to cudf.pandasIssues specific to cudf.pandas
Type
Projects
Status
Todo