🌈 搜索
📅  最后修改于: 2022-03-11 14:46:11.990000             🧑  作者: Mango
df['freq'] = df.groupby('myvar')['myvar'].transform('count')