pandas count show one column

Solutions on MaxInterview for pandas count show one column by the best coders in the world

showing results for - "pandas count show one column"
Karl
23 Aug 2019
1# You can – optionally – remove the unnecessary columns and 
2# keep the user_id column only:
3
4article_read.groupby('source').count()[['user_id']]
5
6# Change user_id as you see fit.