開啟主選單
變更
使用Pandas统计元素出现次数
已移除 1 位元組
,
2022年5月3日 (二) 16:40
無編輯摘要
[[File:PythonPandasStat7.png]]
8.使用print((df ==
17
1
).sum())即可将DataFrame中所有值
为2
为1
的数据个数统计。
[[File:PythonPandasStat8.png]]
← 較舊編輯
較新編輯 →
Ytyzx
行政員
,
管理員
1,138
次編輯