Answers for "how to plot stacked bar chart from grouped data pandas"

0

how to plot stacked bar chart from grouped data pandas

df.groupby(['feature1', 'feature2']).size().unstack() 
           .plot(kind='bar', stacked=True)
Posted by: Guest on January-24-2022

Code answers related to "how to plot stacked bar chart from grouped data pandas"

Python Answers by Framework

Browse Popular Code Answers by Language