Given that, i have the below array:
import numpy as np
dt = np.array([1,2,3,4,5,2,1,3])
I can select the cells which has the value less than 3 by below code:
print(dt[dt<3])
But, how may i obtain the index of the selected cells?
my favorit result is:
[0,1,5,6]