import pandas as pd
data = [[10, 18, 11], [13, 15, 8], [9, 20, 3]]
df = pd.DataFrame(data)
print(df.cummax())
0 1 2 0 10 18 11 1 13 18 11 2 13 20 11