[Numpy-discussion] index of a value in an array

Chris Withers chris@simplistix.co...
Wed Oct 6 09:24:42 CDT 2010


On 06/10/2010 14:53, Thomas, Brian (GE Energy) wrote:
> For e.g. to find index of number 1 in array a, you can say
> idx = where(a==1)

Exactly what we were looking for, thanks!

Chris


More information about the NumPy-Discussion mailing list