[SciPy-User] numpy.nansum bug?

Jeremy Sanders jeremy@jeremysanders....
Tue Sep 21 16:49:03 CDT 2010

I've hit this problem with numpy (1.3.0 on x86-64).

In [12]: a = numpy.array([numpy.nan])

In [13]: numpy.nansum(a)
Out[13]: nan

I assume that this is a bug? It's pretty nasty if you assume that nansum 
always returns a non nan.

This is also pretty weird:
In [14]: numpy.nansum([])
Out[14]: nan


More information about the SciPy-User mailing list