This is my python homework: draw the exact same graph in python.![[Image: DLZ2p9t]](https://ibb.co/DLZ2p9t)
what I have already done is like this:![[Image: 3sCbm68]](https://ibb.co/3sCbm68)
so the main problem is how to separate the histogram to show every year data.
It would be helpful if someone can tell me what kind of histogram it is called and which function can make it. But I also think if it could be the problem of my algorithm. I simply use the data frame that contains "year" and "yearly return", input it with pandas and draw a histogram with plt.hist().But it really confused me to make every 'Year' shown in the histogram separately.
sorry for the wrong images. I used URL for images but it is not shown...
what I have already done is like this:
so the main problem is how to separate the histogram to show every year data.
It would be helpful if someone can tell me what kind of histogram it is called and which function can make it. But I also think if it could be the problem of my algorithm. I simply use the data frame that contains "year" and "yearly return", input it with pandas and draw a histogram with plt.hist().But it really confused me to make every 'Year' shown in the histogram separately.
sorry for the wrong images. I used URL for images but it is not shown...