[Numpy-discussion] What should be the value of nansum of nan's?
Charles R Harris
Mon Apr 26 11:55:51 CDT 2010
We need to make a decision for ticket
what nansum should return when all values are nan. At some earlier
point it was zero, but currently it is nan, in fact it is nan whatever the
operation is. That is consistent, simple and serves to mark the array or
axis as containing all nans. I would like to close the ticket and am a bit
inclined to go with the current behaviour although there is an argument to
be made for returning 0 for the nansum case. Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion