pseudo i.e.:
A = np.array(...) conditions = [(A > 1), (A < 2)] # how to do something like these? filtered = A[&(c