groupby bar plot pandas code example
Example 1: bar plot group by pandas
df.groupby('year').case_status.value_counts().unstack().plot.barh()
Example 2: plot.barh() group by
df.groupby('year').case_status.value_counts().unstack(0).plot.barh()
df.groupby('year').case_status.value_counts().unstack().plot.barh()
df.groupby('year').case_status.value_counts().unstack(0).plot.barh()