Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python bar 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 #bar #plot #groupby
ADD COMMENT
Topic
Name
5+5 =