Tools 1.5The video for this lesson is on its way.
Everything else is ready: study the parts, the key terms and the quiz below.
- Part 11Two questions about one grid: per shop, and per day
- Part 22Answering both with nested Python loops
- Part 33sum with no argument: the whole array to one number
- Part 44sum with axis zero and axis one: the axis you name disappears
- Part 55Naming an axis that is not there, and naming the wrong one
- Part 66mean, min, max and std take the same axis argument
- Part 77keepdims: collapsing an axis to one so the result still broadcasts
- Part 88argmax: positions instead of values, and reading the value back
- Part 99argsort: the positions that put an array in order
- Part 1010Counting a mask along an axis, and any and all
- Part 1111How one nan spreads through a reduction, and the nan functions
- Part 1212Recap and your challenge
Tools 1.5Code walkthrough12 parts
Aggregations Along Axes
Sum, average and find extremes over rows or columns.
Loading your progress…
In this lesson12 parts
- 01Two questions about one grid: per shop, and per day
- 02Answering both with nested Python loops
- 03sum with no argument: the whole array to one number
- 04sum with axis zero and axis one: the axis you name disappears
- 05Naming an axis that is not there, and naming the wrong one
- 06mean, min, max and std take the same axis argument
- 07keepdims: collapsing an axis to one so the result still broadcasts
- 08argmax: positions instead of values, and reading the value back
- 09argsort: the positions that put an array in order
- 10Counting a mask along an axis, and any and all
- 11How one nan spreads through a reduction, and the nan functions
- 12Recap and your challenge