📜  pandas 将计数转化为概率 - Python 代码示例

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

代码示例1
df['prob_x'] = df['x'] / df['x'].sum()