[SciPy-user] specify NaN...

David Cournapeau david at ar.media.kyoto-u.ac.jp
Wed Jun 11 08:23:13 EDT 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 ?

David



More information about the SciPy-User mailing list