NumPy
NumPy
Learn to build, reshape, and slice arrays, then use broadcasting and vectorized operations to replace slow Python loops with clear, fast code.
What you'll practice
- Arrays
- Broadcasting
- Indexing
- Random
- Linear algebra
Lessons
3 lessons, in order
Fast arrays and the math that runs underneath everything.
- 01NumPy arrays: one type, many valuesMeet the array: a fixed-type block of values that supports whole-array arithmetic, slicing, and shape-aware operations.8 min
- 02Broadcasting and aggregation without loopsCombine arrays of different shapes, reduce values along an axis, and use keepdims to keep the dimensions you still need.9 min
- 03Randomness and linear algebraGenerate reproducible random data with a seeded Generator, then use matrix products and solve to work with systems of equations.10 min