Tools 1.3The video for this lesson is on its way.
Everything else is ready: study the parts, the key terms and the quiz below.
- Part 11The two questions: which days beat the target, and what the chain took
- Part 22Selecting with a Python loop and an if, and what it loses
- Part 33Indexing one element: arr[i], negative positions and arr[row, col]
- Part 44Slices: arr[start:stop], the step, and a whole row or column
- Part 55A slice is a view, not a copy: shares_memory and copy
- Part 66Comparing a whole array, and the boolean array it returns
- Part 77Boolean masks: selecting, counting with sum, and assigning
- Part 88Combining conditions with &, | and ~, and why `and` fails
- Part 99Fancy indexing: a list of positions, reordered, and a copy
- Part 1010Recap and your challenge
Tools 1.3Code walkthrough10 parts
Indexing, Slicing and Masks
Select exactly the elements you want, including by condition.
Loading your progress…Next: 1.4 Vectorised Operations and Broadcasting
In this lesson10 parts
- 01The two questions: which days beat the target, and what the chain took
- 02Selecting with a Python loop and an if, and what it loses
- 03Indexing one element: arr[i], negative positions and arr[row, col]
- 04Slices: arr[start:stop], the step, and a whole row or column
- 05A slice is a view, not a copy: shares_memory and copy
- 06Comparing a whole array, and the boolean array it returns
- 07Boolean masks: selecting, counting with sum, and assigning
- 08Combining conditions with &, | and ~, and why `and` fails
- 09Fancy indexing: a list of positions, reordered, and a copy
- 10Recap and your challenge