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