Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seaborn countplot hue stacked

df_plot = df.groupby(['class', 'survived']).size().reset_index().pivot(columns='class', index='survived', values=0)

class     First  Second  Third
survived                      
0            80      97    372
1           136      87    119
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #seaborn #countplot #hue #stacked
ADD COMMENT
Topic
Name
1+8 =