[Numpy-discussion] argmin and argmax without nan
tmp50 at ukr.net
Thu Mar 24 07:55:09 EDT 2011
is there any way to get argmin and argmax of an array w/o nans?
Currently I have
>>> from numpy import *
But it's not the values I would like to get.
The walkaround I use: get all indeces of nans, replace them by -inf,
get argmax, replace them by inf, get argmin.
Is there any better way? (BTW, I invoke argmin/argmax along of a
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion