Learning path

NumPy

Fast maths on whole arrays of numbers: the foundation of data science and AI in Python, with animated arrays.

  1. 1

    NumPy Introduction

    What NumPy is, why every data science and AI library is built on it, how to install it, and your first array.

    3 min read
  2. 2

    Creating NumPy Arrays

    Make arrays from lists, ranges, zeros, ones and random numbers, and read their shape, size and type.

    3 min read
  3. 3

    NumPy Indexing and Slicing

    Pick single values, rows, columns and blocks out of an array, and filter it with true/false masks.

    2 min read
  4. 4

    Reshaping and Joining Arrays

    Change an array's shape with reshape, flatten and transpose, and join arrays with concatenate, vstack and hstack.

    2 min read
  5. 5

    NumPy Maths and Broadcasting

    Element-wise maths, universal functions, and broadcasting, the rule that lets arrays of different shapes work together.

    2 min read
  6. 6

    NumPy Statistics and Aggregations

    Sum, mean, median, standard deviation, min, max and argmax, along rows or columns, plus a mini project analysing class results.

    3 min read