Skip to main content
Albero Academy
All tutorials

NumPy tutorials

Fast numerical Python — the ndarray, indexing & boolean masks, vectorization, broadcasting, aggregations and axes.

Chapters
16
Total reading
3h 53m
Level
Beginner to Advanced

Chapters

  1. Chapter 1

    NumPy Fundamentals

    Why NumPy exists, the ndarray, creating arrays, dtypes and shape — the foundation of all Python data work.
    14 min readStart
  2. Chapter 2

    Indexing, Slicing & Reshaping

    Select and modify parts of an array, filter with boolean masks, and change shape — the skills you use in every analysis.
    15 min readStart
  3. Chapter 3

    Vectorization & Broadcasting

    Do maths on whole arrays at once, apply universal functions, and let broadcasting combine different shapes elegantly.
    15 min readStart
  4. Chapter 4

    Aggregations & Axes

    Summarise arrays with sum, mean and friends, control the axis, generate random data, and touch linear algebra.
    15 min readStart
  5. Chapter 5

    Combining & Splitting Arrays

    Join arrays with concatenate, stack and hstack/vstack, split them back apart, and tile or repeat to build larger arrays.
    14 min readStart
  6. Chapter 6

    Advanced (Fancy) Indexing

    Select arbitrary elements with integer arrays, index by coordinates, and modify scattered positions at once.
    15 min readStart
  7. Chapter 7

    Sorting, Searching & Counting

    Sort arrays and get the sorting order, find insertion points, and count unique values — the toolkit for organising data.
    14 min readStart
  8. Chapter 8

    Missing Data: NaN & Infinity

    Handle the special floating-point values — detect NaN, aggregate around it with nan-aware functions, and clean data safely.
    14 min readStart
  9. Chapter 9

    Linear Algebra Deep Dive

    The maths behind machine learning — matrix products, solving linear systems, determinants, eigenvalues and the SVD.
    16 min readStart
  10. Chapter 10

    Random Sampling & Simulation

    The modern Generator API — draw from distributions, shuffle and sample, and run Monte-Carlo simulations reproducibly.
    15 min readStart
  11. Chapter 11

    Statistics & Histograms

    Describe data numerically — percentiles and quantiles, variance and spread, correlation, and binning with histograms.
    14 min readStart
  12. Chapter 12

    Broadcasting Mastery

    Go beyond the basics — the newaxis trick, outer operations, meshgrid, and computing pairwise results without loops.
    15 min readStart
  13. Chapter 13

    Structured & Datetime Arrays

    Store mixed-type records with structured dtypes, and work with calendar dates using datetime64 and timedelta64.
    14 min readStart
  14. Chapter 14

    Performance, Views & Memory

    Understand why NumPy is fast — contiguous memory, views vs copies, in-place operations, and how to avoid needless allocations.
    15 min readStart
  15. Chapter 15

    Saving, Loading & Interoperability

    Persist arrays to disk with the .npy/.npz formats, read text and CSV data, and move arrays to and from pandas and lists.
    13 min readStart
  16. Chapter 16

    NumPy in Practice

    Bring it together — images and signals as arrays, a normalisation pipeline, common gotchas, and where NumPy hands off to the rest of the stack.
    15 min readStart