I have dataframe which contain time column which is in string format.
dataframe=
time value
00:00:00 10
00:23:00 5
00:59:00 23
01:23:34 34
01:56:00 34
Every time i try to group by hours on Time column it give output like below this :-
hour count
0 38
1 68
But I want Out put like this..
hour count
00 38
01 68
For this i wrote the query like below ;-
dataframe.groupBy(hour('time')).agg({'value':'count'})