Module 2 Overview

Module 2 — Indexing, Slicing & Views

Open In Colab

Welcome

Indexing is how you select data out of an array, and it’s where NumPy has the most surprises for people coming from Python lists — especially around whether what you get back is a view (shares memory with the original) or a copy (independent). Getting this wrong is one of the most common sources of silent bugs in real NumPy code, so this module slows down and builds careful intuition before moving on.

Learning goals

Setup — run this first.