import numpy as np a = np.array([1,2,3,4,5,6,6,7,6]) b = np.where(a == 6) # b = np.argwhere(a ==6 ) print(b)