SchoolWhool
Quizzes and saved progress, freeSign in freeSign in

Tools 1.5Lesson outlineLesson 5 of 7 in Module 1

Aggregations Along Axes

Sum, average and find extremes over rows or columns.

Free sample. Everything in this module opens with a free account.Video in production.

Lesson outline: Aggregations Along Axes

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