arkouda icon indicating copy to clipboard operation
arkouda copied to clipboard

binops to handle np.nan correctly

Open ajpotts opened this issue 1 year ago • 1 comments

This is what I am seeing"

python

Out[4]: array([False True True True True])

In [5]: x = ak.array([np.nan, 1.0])

In [6]: x == x
Out[6]: array([False True])

In [7]: x < x
Out[7]: array([False False])

In [8]: x <= x
Out[8]: array([False True])

ajpotts avatar May 29 '24 21:05 ajpotts

Is this really a bug? numpy gives the same results:

x = np.array([np.nan,1.09]) x==x array([False, True]) x<x array([False, False]) x<=x array([False, True])

drculhane avatar Jun 13 '24 15:06 drculhane

I can't recreate this problem so I will assume @drculhane is correct and close this issue.

ajpotts avatar May 23 '25 20:05 ajpotts