[Numpy-discussion] numpy.average(fooArray, axis=0): dropping nans from calculation
Eric Firing
efiring at hawaii.edu
Fri Jul 14 11:28:53 CDT 2006
Alan G Isaac wrote:
> On Fri, 14 Jul 2006, Sven Schreiber apparently wrote:
>
>>So maybe that's a feature request, complementing the
>>nansum function by a nanaverage?
>
>
> This is not an objection; just an observation.
> It has always seemed to me that such descriptive
> statistics make more sense as class attributes.
> In this case, something like a NanDstat class.
Attached is something like that, in case someone finds it useful. It is
designed to replace something I wrote a long time ago for matlab. It is
only very lightly tested, so use with care.
Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mstdgap.py
Type: text/x-python
Size: 5659 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20060714/aff4c873/attachment-0001.py
More information about the Numpy-discussion
mailing list