📜  累积百分位数 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:12.293000             🧑  作者: Mango

代码示例1
df['cum_sum'] = df["val1"].cumsum()
df['cum_perc'] = round(100*df.cum_sum/df["val1"].sum(),2)