Re: [Numpy-discussion] median object

2009-07-07 Thread keflavich
Robert Kern-2 wrote: > > Mostly just history. Many, though certainly not all, single-argument > functions from Numeric became ndarray methods. I believe that median > was added after that event, and there is some resistance to adding yet > another method to ndarray. The implementor of numpy.ma

[Numpy-discussion] median object

2009-07-06 Thread keflavich
Hi, I want to be able to do something like: import numpy x=numpy.array([1,4,4,6,7,3,4,2]) x.median() rather than numpy.median(x) so that in a function, I can call x.median() and allow x to be a masked array or a numpy array. Using the ma.median version by default is something of a workaround,