clipped = np.clip(temps, 28, 35) clipped