[Numpy-discussion] isnan surprise

Keith Goodman kwgoodman@gmail....
Sun May 25 13:17:59 CDT 2008


On Sun, May 25, 2008 at 11:13 AM, Keith Goodman <kwgoodman@gmail.com> wrote:
>>> x = np.array([1.0])
>>> np.isnan(x)
>   array([False], dtype=bool)  # <----- Expected
>>> np.isnan(x,x)
>   array([ 0.])  # <----- Surprise (to me)

I guess this is not surprising since I'm asking isnan to put the
answer in a float array.


More information about the Numpy-discussion mailing list