變更

前往: 導覽搜尋

使用Pandas统计元素出现次数

已增加 119 位元組, 2022年3月20日 (日) 11:36
無編輯摘要
2.使用print(df['性别'].value_counts())即可打印出“性别”的统计次数。
[[File:PythonPandasStat2.png]]
 
3.使用print(df['性别'].nunique())即可打印出“性别”的不重复次数。
[[File:PythonPandasStat3.png]]
1,138
次編輯

導覽選單