output = array[np.where((array < condition1) | (array > condition2))]
output = array[np.where((array > condition1) & (array < condition2))]
ref:https://www.kite.com/python/answers/how-to-use-numpy-where-with-multiple-conditions-in-python
output = array[np.where((array < condition1) | (array > condition2))]
output = array[np.where((array > condition1) & (array < condition2))]
ref:https://www.kite.com/python/answers/how-to-use-numpy-where-with-multiple-conditions-in-python