[SciPy-user] array mean issue...

David Cournapeau david at ar.media.kyoto-u.ac.jp
Wed Jun 11 10:44:39 EDT 2008


fred wrote:
> I'll look at it asap.
>
> However, I wonder why there is no nan*** methods related to arrays,
> like array.mean(), array.min(), etc.
> And also why there is no nanmean & nanstd method...
>   

there is:

 >> from scipy.stats.stats import nanmean
 >> import numpy as np
 >> nanmean([np.Nan, 1])
1.0

If you are about to say "how the hell would I know that", you may well 
be right. I am fixing this to put them into scipy.stats instead of 
scipy.stats.stats

cheers,

David



More information about the SciPy-User mailing list