[Numpy-discussion] Concepts for masked/missing data

Alan G Isaac alan.isaac@gmail....
Sat Jun 25 13:18:28 CDT 2011


On 6/25/2011 2:06 PM, Benjamin Root wrote:
> Note that "np.sum([])" also returns 0.0.  I think the
> reason why it has been returning zero instead of NaN was
> because there wasn't a NaN-equivalent for integers.


http://en.wikipedia.org/wiki/Empty_sum

fwiw,
Alan Isaac


More information about the NumPy-Discussion mailing list