Python Forum
Can someone find out what kind of histogram is it?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can someone find out what kind of histogram is it?
#1
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...
Reply
#2
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.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with a formula 1 kind of homework claroque 2 1,409 Jun-20-2023, 09:58 PM
Last Post: claroque
Question Need help with NumPy Histogram function coding Triikey 1 937 May-15-2023, 01:45 PM
Last Post: deanhystad
  Plotting histogram of dataframe column Mark17 4 2,641 Jul-30-2020, 09:52 AM
Last Post: Mark17
  typeerror, building histogram from data newatpython11 7 3,781 Jul-17-2019, 12:54 PM
Last Post: ichabod801
  Histogram using pandas dataframe not showing proper output ift38375 1 2,189 Jul-04-2019, 10:43 PM
Last Post: scidam
  Histogram and text file. pawlo392 1 4,127 May-24-2019, 03:14 AM
Last Post: heiner55
  how do i use get for my histogram function? pseudo 4 4,819 Oct-14-2018, 04:23 AM
Last Post: stullis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020