🌈 搜索
📅  最后修改于: 2022-03-11 14:45:12.293000             🧑  作者: Mango
df['cum_sum'] = df["val1"].cumsum() df['cum_perc'] = round(100*df.cum_sum/df["val1"].sum(),2)