[Numpy-discussion] argmin and argmax
Sat Jul 11 09:12:44 CDT 2009
On Sat, Jul 11, 2009 at 7:09 AM, Keith Goodman<email@example.com> wrote:
> On Sat, Jul 11, 2009 at 3:20 AM, f0X_in_s0X<firstname.lastname@example.org> wrote:
>> Do argmin and argmax skip nan values? I cant find it anywhere in the numpy
>> In any case, if I want to find max and min values in an array that may
>> contain nan values also, what would the be the most efficient way to do
>> that? Any pointers??
>>> x = np.array([np.nan, 1, 2, np.nan])
> 0 :(
> 0 :(
> 2 :)
> 1 :)
Oh, you only want the values? Then take a look at np.nanmax and np.nanmin.
More information about the NumPy-Discussion