Introduction
We use np.clip() to keep numbers within a set range. It stops values from going too low or too high.
When you want to limit temperatures to a safe range in a weather dataset.
When you need to keep scores between 0 and 100 in a grading system.
When you want to avoid extreme values in sensor data that might be errors.
When normalizing data but want to keep values within a fixed boundary.