Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas count show one column

# 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.
Source by data36.com #
 
PREVIOUS NEXT
Tagged: #pandas #count #show #column
ADD COMMENT
Topic
Name
4+3 =