and operation in numpy.where code example Example: numpy and operator np.logical_or(foo < 40, foo > 60)