📌  相关文章
📜  pandas count 显示一列 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:12.642000             🧑  作者: Mango

代码示例1
# You can – optionally – remove the unnecessary columns and 
# keep the user_id column only:

article_read.groupby('source').count()[['user_id']]

# Change user_id as you see fit.