arrData = np.array([1, 2, 3, 4, 5, 6, 8])
arrIndex = np.where(arrData == 3)[0] # Get the index where data == 3
print("arrIndex = ", arrIndex )
Result
[2]
Reference
1. https://numpy.org/doc/stable/reference/generated/numpy.where.html