I want to make a request to find the most busy time of the day on average in 1-hour intervals.
I have on my dataframe the row date in format "%d/%b/%Y:%H:%M:%S".
I begin like that:
mostBusyTimeDF = logDF.groupBy("date") ...
For example input:
date
2015-12-01 21:04:00
2015-12-01 10:04:00
2015-12-01 21:07:00
2015-12-01 21:34:00
In output :
date count(1 hour interval)
2015-12-01 21:04:00 3
2015-12-01 10:04:00 1
After I don't know how can I do it..
Can you help me?
Thanks a lot
See Question&Answers more detail:os