[Numpy-discussion] index of minimum of array
Fri Apr 13 15:56:46 CDT 2007
Bill Baxter wrote:
> On 4/14/07, Alan Isaac <email@example.com> wrote:
>>> On 4/13/07, Tommy Grav <firstname.lastname@example.org> wrote:
>>>> how do I find the index of the minimum value of an numpy
>>>> array? Example a = array([1.,2.,0.4,3.]) I want the i=2
>> Just a reminder that there exist a very useful example list
> And in addition to examples it has great "See Also" info. I probably
> use it more for the See Also than the actual examples. Sure enough
> See Also for min() and max() refer to argmin() and argmax().
Perhaps in this particular case it would be nice to have a See Also for 'nan'
at argmin() and argmax(), since there is info about nanargmin and nanargmax().
More information about the Numpy-discussion