All articles

NumPy Fundamentals

An eight-part, beginner-friendly path through NumPy: arrays vs lists, creating arrays, indexing and slicing, vectorised maths and broadcasting, reshaping, aggregations and statistics, linear algebra and random numbers, and a project analysing exam marks. Every example is run on NumPy 2.3 with its real output.

  1. Getting Started with NumPy: Arrays, Installation and Why NumPy Is Fast · 7 min
  2. Creating NumPy Arrays: arange, linspace, zeros, Random Numbers and dtypes · 7 min
  3. Indexing and Slicing NumPy Arrays: Views, Copies and Boolean Masks · 6 min
  4. Vectorised Maths and Broadcasting in NumPy · 6 min
  5. Reshaping and Combining NumPy Arrays: reshape, Axes, Stack and Split · 6 min