[Numpy-discussion] min() of array containing NaN

Stéfan van der Walt stefan@sun.ac...
Tue Aug 12 01:56:57 CDT 2008


Hi Andrew

2008/8/12 Andrew Dalke <dalke@dalkescientific.com>:
> This is buggy for the case of a list containing only NaNs.
>
>  >>> import numpy as np
>  >>> np.NAN
> nan
>  >>> np.min([np.NAN])
> nan
>  >>> np.nanmin([np.NAN])
> inf
>  >>>

Thanks for the report.  This should be fixed in r5630.

Regards
Stéfan


More information about the Numpy-discussion mailing list