Python Forum
Can someone find out what kind of histogram is it? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Can someone find out what kind of histogram is it? (/thread-26283.html)



Can someone find out what kind of histogram is it? - J_tin - Apr-26-2020

This is my python homework: draw the exact same graph in python.[Image: DLZ2p9t]

what I have already done is like this: [Image: 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...


RE: Can someone find out what kind of histogram is it? - buran - Apr-26-2020

please, post your code so far and your data.
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.