return index of max element numpy code example Example: get index of highest value in array python result = numpy.where(arr == numpy.amax(arr))