What is NumPy?
A fundamental library for numerical computing in Python, providing efficient multi-dimensional arrays and mathematical operations.
NumPy (Numerical Python) provides the ndarray — a fast, memory-efficient array type for numerical operations. Operations on NumPy arrays are vectorized (no explicit loops needed), making them 10-100x faster than Python lists for numerical work.
Key features include broadcasting (operations on arrays of different shapes), linear algebra (np.linalg), random number generation, Fourier transforms, and integration with C/Fortran libraries. NumPy is the foundation for SciPy, Pandas, scikit-learn, and TensorFlow.