I reference to the information on the Internet.
I would like to painting my data.
id time w
5630 39 2018-03-01 841.704067
5631 39 2018-03-02 605.119444
5632 39 2018-03-03 651.337735
5633 39 2018-03-04 595.974252
5634 39 2018-03-05 656.031315
5635 39 2018-03-06 972.101045
5636 39 2018-03-07 660.659986
5637 39 2018-03-08 1225.648122
.
.
5685 39 2018-04-25 699.347653
5686 39 2018-04-26 516.267288
5687 39 2018-04-27 621.807574
5688 39 2018-04-28 488.903030
5689 39 2018-04-29 790.637525
5690 39 2018-04-30 457.569811
5691 40 2018-03-01 157.636364
5692 40 2018-03-02 138.759563
5693 40 2018-03-03 209.213996
5694 40 2018-03-04 177.255571
5695 40 2018-03-05 155.696106
.
.
5748 40 2018-04-27 133.512968
5749 40 2018-04-28 157.630623
5750 40 2018-04-29 210.996613
5751 40 2018-04-30 120.643963
I execute this:
fig, ax = plt.subplots(figsize=(15,7))
df2.groupby(['time','id']).count()['w'].unstack().plot(ax=ax)
But my result is strange.
I would like to painting like this:
I just cut out my sample, but I want to draw it all at once. Overlap or alone.
How to achieve similar results below.
I really need your help.Many thanks.


