Quant Interview Prep8 sections · 255 units
Open in Course

NumPy Fundamentals

Fast numerical computing

NumPy is the foundation of scientific Python. Arrays are faster than lists for numerical operations. Key operations: np.array(), np.mean(), np.std(), np.dot() for matrix multiplication.

Broadcasting lets you operate on arrays of different shapes. Vectorization replaces slow loops with fast array operations. If you write for loops over large datasets, your code will be too slow.