Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python plot groupby

df.groupby(['tags_0', 'gender']).gender.count().unstack().plot(kind='barh', legend=False, color=['r', 'g', 'b'])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #plot #groupby
ADD COMMENT
Topic
Name
5+6 =