DataFrame.cumsum: Get Cumulative Sum Over Each Column
DataFrame.cumsum: Get Cumulative Sum Over Each Column
The cumulative maximum is the maximum of the numbers starting from 0 to the current index. If you want to get the cumulative maximum of a pandas DataFrame/Series, use cummax.