Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

percentage plot of categorical variable in python woth hue

sns.barplot(x='group', y='Values', data=df, estimator=lambda x: sum(x==0)*100.0/len(x))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #percentage #plot #categorical #variable #python #woth #hue
ADD COMMENT
Topic
Name
8+7 =