def cumsum(df, new_column: str, column: str, index: list, date_column: str, date_format: str):
logging.getLogger(__name__).warning(f"<STR_LIT>")<EOL>date_temp = '<STR_LIT>'<EOL>if isinstance(index, str):<EOL><INDENT>index = [index]<EOL><DEDENT>levels = list(range(<NUM_LIT:0>, len(index)))<EOL>df[date_temp] = pd.to_datetime(df[date_column], format=date_format)<EOL>reference_cols = [date_temp, date_column]<EOL>df = df.groupby(index + reference_cols).sum()<EOL>df[new_column] = df.groupby(level=levels)[column].cumsum()<EOL>df.reset_index(inplace=True)<EOL>del df[date_temp]<EOL>return df<EOL>
DEPRECATED - please use `compute_cumsum` instead