how can i use a 2d array of boolean rows to filter another 2d array?,"data[(np.where(masks)[1]), :]"