[Numpy-discussion] numpy.nansum() behavior in 1.3.0

Michael Hearne mhearne at usgs.gov
Mon Jun 1 12:55:43 EDT 2009


A question (and possibly a bug):

What should be returned when I do:

numpy.nansum([])

In my copy of numpy 1.1.1, I get 0.0.  This is what I would expect to  
see.
However, this behavior seems to have changed in 1.3.0, in which I get  
nan.

Thanks,

Mike



More information about the NumPy-Discussion mailing list