[Numpy-discussion] Behavior of nan{max, min} and nanarg{max, min} for all-nan slices.

Stéfan van der Walt stefan at sun.ac.za
Wed Oct 2 12:37:50 EDT 2013

On 2 Oct 2013 18:04, "Charles R Harris" <charlesr.harris at gmail.com> wrote:
> The question is what to do when all-nan slices are encountered in the
nan{max,min} and nanarg{max, min} functions. Currently in 1.8.0, the first
returns nan and raises a warning, the second returns intp.min and raises a
warning. It is proposed that the nanarg{max, min} functions, and possibly
the nan{max, min} also, raise an error instead.

I agree with Nathan; this sounds like more reasonable behaviour to me.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131002/6d1b01ab/attachment.html>

More information about the NumPy-Discussion mailing list