更改

使用Pandas统计元素出现次数

添加119字节, 2022年3月20日 (日) 11:36
无编辑摘要
2.使用print(df['性别'].value_counts())即可打印出“性别”的统计次数。
[[File:PythonPandasStat2.png]]
 
3.使用print(df['性别'].nunique())即可打印出“性别”的不重复次数。
[[File:PythonPandasStat3.png]]
1,138
个编辑