Skip to content

np.nan comparison to pd.NA Equality Semantics differ elementwise in IntervalArray #31882

Closed
@WillAyd

Description

@WillAyd

Discovered in #31799

I think this is probably a deeper rooted problem than just IntervalArray but not sure how else to describe. @jorisvandenbossche maybe has thoughts

>>> from pandas.core.arrays import IntervalArray
>>> arr = IntervalArray.from_arrays([0., 1., 2., np.nan], [1., 2., 3., np.nan])
>>> arr == pd.NA
array([False, False, False, False])
>>> arr[-1] == pd.NA
<NA>

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNA - MaskedArraysRelated to pd.NA and nullable extension arrays

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions