📅  最后修改于: 2022-03-11 14:47:24.494000             🧑  作者: Mango
# plot data
fig, ax = plt.subplots(figsize=(15,7))
# use unstack()
data.groupby(['date','type']).count()['amount'].unstack().plot(ax=ax)