numpy element wise logic and code example Example: numpy and operator np.logical_or(foo < 40, foo > 60)