I have a data frame like this:
value identifier
2007-01-01 0.781611 55
2007-01-01 0.766152 56
2007-01-01 0.766152 57
2007-02-01 0.705615 55
2007-02-01 0.032134 56
2007-02-01 0.032134 57
2008-01-01 0.026512 55
2008-01-01 0.993124 56
2008-01-01 0.993124 57
2008-02-01 0.226420 55
2008-02-01 0.033860 56
2008-02-01 0.033860 57
So I do a groupby per identifier:
df.groupby('identifier')
And now I want to generate subplots in a grid, one plot per group. I tried both
df.groupby('identifier').plot(subplots=True)
or
df.groupby('identifier').plot(subplots=False)
and
plt.subplots(3,3)
df.groupby('identifier').plot(subplots=True)
to no avail. How can I create the graphs?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…