打开主菜单
更改
使用Pandas统计元素出现次数
添加32字节
,
2022年5月3日 (二) 16:27
无编辑摘要
8.使用print((df == 2).sum())即可将DataFrame中所有值为2的数据个数统计。
[[File:PythonPandasStat8.png]]
←上一编辑
下一编辑→
Ytyzx
行政员
,
管理员
1,138
个编辑