📅  最后修改于: 2022-03-11 14:46:13.926000             🧑  作者: Mango
代码示例1
df['frequency'] = df['county'].map(df['county'].value_counts())
county frequency
1 N 5
2 N 5
3 C 1
4 N 5
5 S 1
6 N 5
7 N 5