Open workspace
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.

  1. Part 11Two questions about one grid: per shop, and per day
  2. Part 22Answering both with nested Python loops
  3. Part 33sum with no argument: the whole array to one number
  4. Part 44sum with axis zero and axis one: the axis you name disappears
  5. Part 55Naming an axis that is not there, and naming the wrong one
  6. Part 66mean, min, max and std take the same axis argument
  7. Part 77keepdims: collapsing an axis to one so the result still broadcasts
  8. Part 88argmax: positions instead of values, and reading the value back
  9. Part 99argsort: the positions that put an array in order
  10. Part 1010Counting a mask along an axis, and any and all
  11. Part 1111How one nan spreads through a reduction, and the nan functions
  12. 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

  1. 01Two questions about one grid: per shop, and per day
  2. 02Answering both with nested Python loops
  3. 03sum with no argument: the whole array to one number
  4. 04sum with axis zero and axis one: the axis you name disappears
  5. 05Naming an axis that is not there, and naming the wrong one
  6. 06mean, min, max and std take the same axis argument
  7. 07keepdims: collapsing an axis to one so the result still broadcasts
  8. 08argmax: positions instead of values, and reading the value back
  9. 09argsort: the positions that put an array in order
  10. 10Counting a mask along an axis, and any and all
  11. 11How one nan spreads through a reduction, and the nan functions
  12. 12Recap and your challenge