[Numpy-discussion] Nansum function behavior
shoyer at gmail.com
Fri Oct 23 21:28:27 EDT 2015
You should read the previous discussion about this issue on GitHub:
For what it's worth, I do think the new definition of nansum is more
If you want to preserve NaN if there are no non-NaN values, you can often
calculate this desired quantity from nanmean, which does return NaN if
there are only NaNs.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion