IIRC, there is a where= in ufunc.__call__ now, but Mark didn't get around
to implementing it for ufunc.reduce. It would be great to have, definitely.


On Thu, May 2, 2013 at 9:09 AM, Benjamin Root <notifications@github.com>wrote:

> In numpy/core/_methods.py:
>
> > @@ -61,6 +61,26 @@ def _mean(a, axis=None, dtype=None, out=None, keepdims=False):
> >          ret = ret / float(rcount)
> >      return ret
> >
> > +def _nanmean(a, axis=None, dtype=None, out=None, keepdims=False):
> > +    arr = array(a, subok=True)
>
> I think @mwiebe <https://github.com/mwiebe> did something along those
> lines at one point with the NA work, but it got pulled out. I seriously
> want a where= kwarg in the ufunc architecture so that I can "fix" masked
> arrays making a copy of itself whenever one does a min or a max.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/numpy/numpy/pull/3297/files#r4054067>
> .
>