[Numpy-discussion] Concepts for masked/missing data

Benjamin Root ben.root@ou....
Sat Jun 25 14:15:31 CDT 2011


On Sat, Jun 25, 2011 at 1:18 PM, Alan G Isaac <alan.isaac@gmail.com> wrote:

> 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
>
>
Ah, thanks.

This then does raise the question of what masked arrays should do in the
case of a completely masked out record (or field, or whatever).

Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110625/6a0a7cee/attachment.html 


More information about the NumPy-Discussion mailing list