# plot data fig, ax = plt.subplots(figsize=(15,7)) # use unstack() data.groupby(['date','type']).count()['amount'].unstack().plot(ax=ax)