#plot data fig, ax = plt.subplots(figsize=(15,7)) data.groupby(['date','type']).count()['amount'].plot(ax=ax)
df.groupby('year').case_status.value_counts().unstack(0).plot.barh()