I would like to get the indices of elements in a list based on a condition. For most cases one can do that np.where. However, once the conditions becomes abstra
np.where