[Numpy-discussion] question on NumPy NaN

David Cournapeau david@ar.media.kyoto-u.ac...
Tue May 20 20:12:05 CDT 2008


Keith Goodman wrote:
> Or
>
> np.nansum(a) / np.isfinite(a).sum()
>
> A nanmean would be nice to have in numpy.
>   

nanmean, nanstd and nanmedian are available in scipy, though.

cheers,

David


More information about the Numpy-discussion mailing list