← All tracks

NumPy

From your first array to broadcasting, statistics, and linear algebra. Go through each lesson in order: read, run the examples yourself, then work the exercises at the bottom. Prefer a dense lookup instead? Jump to the quick reference.

Beginner
1. What Is an Array?
ndarray vs. Python list, and the core ways to create one.
2. Indexing & Slicing
Picking out elements, rows, columns, and matches to a condition.
Intermediate
3. Shape Manipulation & Broadcasting
Reshaping, stacking, and the rule that lets mismatched shapes still add.
4. Aggregations & Statistics
sum, mean, and friends, plus what axis actually means.
5. Random Numbers & File I/O
Reproducible randomness with Generator, plus reading/writing arrays.
Advanced
6. Linear Algebra & Advanced Patterns
Matrix operations, sorting/searching, and the tricks that come up in real code.