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

Chris Withers chris at simplistix.co.uk
Wed Oct 6 10:24:42 EDT 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