I extracted the following data from a dataframe . https://i.imgur.com/rCLfV83.jpg
The question is, how do I plot a graph, probably a histogram type, where the horizontal axis are the hours as bins [16:00 17:00 18:00 ...24:00] and the bars are the average rainfall during each of those hours.
I just don't know enough pandas yet to get this off the ground so I need some help. Sample data below as requested.
Date        Hours  `Precip`
1996-07-30  21        1
1996-08-17  16        1
            18        1
1996-08-30  16        1
            17        1
            19        5
            22        1
1996-09-30  19        5
            20        5
1996-10-06  20        1
            21        1
1996-10-19  18        4
1996-10-30  19        1
1996-11-05  20        3
1996-11-16  16        1
            19        1
1996-11-17  16        1
1996-11-29  16        1
1996-12-04  16        9
            17       27
            19        1
1996-12-12  19        1
1996-12-30  19       10
            22        1
1997-01-18  20        1
 
     
    