Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas cummax

import pandas as pd

s = pd.Series([0, 1, -2, 5, 10, -3])
s.cummax()
>>>
	0     0
	1     1
	2     1
	3     5
	4    10
	5    10
	dtype: int64
 
PREVIOUS NEXT
Tagged: #pandas #cummax
ADD COMMENT
Topic
Name
9+5 =