In NumPy, certain operations produce results that aren't ordinary numbers. These special values — np.nan , np.inf , and np.NINF — represent missing data, infinity, and negative infinity. Understanding them is crucial for clean, reliable data work! 🔍 What Are These Special Values? NumPy uses IEEE 754 floating-point standards for these: np.nan : "Not a Number" — for undefined or missing results np.inf : Positive infinity np.NINF (or -np.inf ): Negative infinity Analogy: np.nan is like a blank answer on a test — something went wrong. Infinity is like dividing by zero — the result grows without bound. 🟢 DO: Treat these as signals — they tell you something important about your data or calculation! Creating Special Values import numpy as np print("NaN:", np.nan) print("Positive infinity:", np.inf) print("Negative infinity:", np.NINF) # or -np.inf print("From operations:") print("0/0:", np.array([...