'Pandas Cummax starting with x row
I want to have cummax start at x index Psuedocode would be:
df['highest']= df['somenumber'](starting at index x).cummax()
df['somenumber'] is 10,50,30,20,80,5
x=2
df['highest'] would be 0,0,30,30,80,80
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
