If only 1 line, i can plot, learn from below Plot Normal distribution with Matplotlib
e.g , i have a pandas like below:
name,distance
Peter,13
Sam,14
Peter,15
Sam,12
Sam,13
Peter,14
With df.groupby('name').describe()
I can display some min/max/mean by each of a user.
However, I want to draw a normal distribution base on existing data.
i tried df.sort_values(by='name').groupby('name').plot()
but it wont draw a pdf or normal distribution for it. How can I use numpy to achieve that
Thanks