Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to give bar plot groupby python different colors

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