[Numpy-discussion] question on NumPy NaN

David Cournapeau david at ar.media.kyoto-u.ac.jp
Tue May 20 21:12:05 EDT 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