NumPy Step by Step
A lightweight execution-visualization book.
Creating Arrays
Array from List
Arange and Linspace
Zeros, Ones, and Full
Reshape 1D to 2D
Indexing and Slicing
Index Element
Slice Range
Slice 2D Row and Column
Fancy Index
Elementwise Math
Add Arrays
Scalar Multiply
Elementwise Product
Power and Sqrt
Broadcasting
Add Vector to Rows
Column Broadcast
Center Columns
Normalize Rows
Reductions
Sum and Mean
Min, Max, and Argmax
Axis Reductions
Cumulative Sum
Boolean Masks
Mask from Threshold
Filter with Mask
Combine Two Masks
Where Replace
Linear Algebra Basics
Dot Product
Matrix-Vector Multiply
Matrix Multiply 2x2
Transpose
Sorting and Unique
Sort Array
Argsort
Unique Values