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
Describe the bug, including details regarding any error messages, version, and platform.
It seems the interchange Column.null_count() (relevant spec) has erroneous behaviour
>>>importpyarrowaspa>>>pa.__version__'12.0.0.dev304'# from https://pypi.fury.io/arrow-nightlies/>>>df=pa.table([pa.array([float("nan")], type=pa.float64())], ["foo"])
>>>dfi=df.__dataframe__()
>>>col=dfi.get_column(0)
>>>col.null_count0# should be 1
I assume this is because Arrow does not treat NaNs as nulls, which semantically makes sense, but in the interchange protocol it should—see vaexio/vaex#2120 for a related discussion.
Do tag me please! =)
Very cool you both jumped on it so quickly hehe.
I assume this is because Arrow does not treat NaNs as nulls, which semantically makes sense, but in the interchange protocol it should—see vaexio/vaex#2120 for a related discussion.
But we agree with Maarten 😊 vaexio/vaex#2120 (comment)
There would be loss of information for all the libraries that actually differentiate between nan and null, right?
Closing this issue as we have received confirmation from the protocol side that nan and null can be treated separately, see discussion in data-apis/dataframe-api#126
Activity
[-]Interchange `pa.Table`'s `Column.null_count` doesn't count NaNs[/-][+][Python] Interchange `pa.Table`'s `Column.null_count` doesn't count NaNs[/+]AlenkaF commentedon Mar 30, 2023
Do tag me please! =)
Very cool you both jumped on it so quickly hehe.
But we agree with Maarten 😊 vaexio/vaex#2120 (comment)
There would be loss of information for all the libraries that actually differentiate between nan and null, right?
AlenkaF commentedon Apr 2, 2023
Closing this issue as we have received confirmation from the protocol side that
nanandnullcan be treated separately, see discussion in data-apis/dataframe-api#126