Python NumPy

NumPy is the foundation under almost every data and ML library in Python. These 5 tutorials cover array creation, indexing and slicing, broadcasting, vectorization, and linear algebra with dot products and eigenvalues. Master these and Pandas, scikit-learn, and PyTorch all start making sense.

NumPy: Broadcasting, Vectorization, ufuncs

NumPy broadcasting explained: how arrays of different shapes combine automatically, what vectorized ufuncs really do, and why writing a Python loop over a NumPy array is almost always the wrong move. “The purpose of computing is insight, not numbers.” Richard Hamming, Numerical Methods for Scientists and Engineers Last Updated: July 2026 | Tested on: Python 3.14.6, NumPy 2.4.6 | Difficulty: Advanced | Reading Time: 19 minutes You write array + 5 and NumPy adds 5 to every single element. But ... Read More

NumPy: Introduction to Arrays, dtypes, and Why NumPy

This NumPy introduction gets you started with the library from scratch. You will see why NumPy arrays beat plain Python lists by a wide margin, learn how to create an ndarray, understand dtypes and shape, and run your first vectorized operations. “NumPy is the foundation of the Python scientific computing stack.” Travis Oliphant, NumPy creator Last Updated: July 2026 | Tested on: Python 3.14.6, NumPy 2.4.6 | Difficulty: Intermediate | Reading Time: 20 minutes You have been writing Python loops ... Read More