Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python plot groupby 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: #python #plot #groupby #colors
ADD COMMENT
Topic
Name
1+2 =