變更

前往: 導覽搜尋

使用Pandas统计元素出现次数

已增加 1 位元組, 2022年5月3日 (二) 16:31
無編輯摘要
[[File:PythonPandasStat7.png]]
8.使用print((df == 217).sum())即可将DataFrame中所有值为2的数据个数统计。
[[File:PythonPandasStat8.png]]
1,138
次編輯

導覽選單