I have the following pandas DataFrame:
time Group blocks 0 1 A 4 1 2 A 7 2 3 A
You can re-structure the data as a pivot table:
df.pivot_table(index='time',columns='Group',values='blocks',aggfunc='sum').plot()