NumPy · Lesson 3.4 · Pro

Running totals and differences

Running totals, changes from one value to the next, growth rates and the drop from a peak.

In this lesson

  1. Running totals with cumsum
  2. Change from the previous value with diff
  3. Growth rates
  4. Running peak and drawdown