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