кумулятивная сумма колонны Python Pandas
# Using the pandas "cumsum()" function
df['new_column'] = df.column_name.cumsum()
Kwams
# Using the pandas "cumsum()" function
df['new_column'] = df.column_name.cumsum()