On Sun, Jul 14, 2013 at 2:55 PM, Warren Weckesser <
warren.weckes...@gmail.com> wrote:
> On 7/14/13, Charles R Harris wrote:
> > Some corner cases in the mean, var, std.
> >
> > *Empty arrays*
> >
> > I think these cases should either raise an error or just return nan.
> > Warnings seem ineffecti
On 7/14/13, Charles R Harris wrote:
> Some corner cases in the mean, var, std.
>
> *Empty arrays*
>
> I think these cases should either raise an error or just return nan.
> Warnings seem ineffective to me as they are only issued once by default.
>
> In [3]: ones(0).mean()
> /home/charris/.local/li
Some corner cases in the mean, var, std.
*Empty arrays*
I think these cases should either raise an error or just return nan.
Warnings seem ineffective to me as they are only issued once by default.
In [3]: ones(0).mean()
/home/charris/.local/lib/python2.7/site-packages/numpy/core/_methods.py:61:
On Jul 13, 2013, at 13:36 , Gregorio Bastardo
wrote:
> Hi Stéfan,
>
> Thanks for the suggestion, but it does not protect the array:
Thinking about it, it can't: when `x` is a MaskedArray, `x.data` is just a view
of the underlying array as a regular ndarray. As far as I understand, changing