With np.where, NumPy provides a flexible way to apply if-else logic to arrays. Whether you’re replacing missing values or segmenting data, this function makes your code both shorter and more readable. https://docs.vultr.com/python/third-party/numpy/where