I have a data set and it consists only Year, days and hours and would like to get or group by into days into the month of the year?
Head of the Dataframe looks like this:
Year DOY Hour
0 2012 1 1
1 2012 1 2
2 2012 1 3
3 2012 1 4
4 2012 1 5
Tail looks like this:
Year DOY Hour
8779 2012 366 20
8780 2012 366 21
8781 2012 366 22
8782 2012 366 23
8783 2013 1 0
I tried groupby on DOY and Hour but that doesn't give me what I want. How can I do it in Pandas to get months out of this data?