[SciPy-user] specify NaN...

David Cournapeau david@ar.media.kyoto-u.ac...
Wed Jun 11 07:23:13 CDT 2008

fred wrote:
> Hi again,
> In my set of data, a few has "really" NaN, others has "special" value
> for it (say -9999 for positive integer arrays).
> So, I don't want to take in account these values to compute, min, max,
> mean and so on.

If you do not want to take into accout both special and nan, why not 
using masked array ?


More information about the SciPy-user mailing list