[Numpy-discussion] Medians that ignore values

Pierre GM pgmdevlist@gmail....
Fri Sep 19 15:54:05 CDT 2008


On Friday 19 September 2008 16:28:34 Alan G Isaac wrote:
> On 9/19/2008 11:46 AM Pierre GM apparently wrote:
> >>>> a.mask=True

> This is great, but is apparently
> new behavior as of NumPy 1.2?

I'm not sure, sorry. Another way is 
ma.array(np.empty(yourshape,yourdtype), mask=True)
which should work with earlier versions.


More information about the Numpy-discussion mailing list