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

Stéfan van der Walt stefan at sun.ac.za
Tue Aug 12 02:56:57 EDT 2008


Hi Andrew

2008/8/12 Andrew Dalke <dalke at 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