sorry if my title is not clear.
I am trying to get a count of how many people park at a distinct time in a distinct area.
I have this dataframe.
UserId | Postcode | Time |
A 3000 20:00
B 3000 20:00
C 3100 20:00
D 3000 1:00
E 1000 5:00
F 4000 10.00
I have sliced the time to the nearest hour, so 13.20pm get sliced into 13.00 for easy grouping.
I want to count number of users per postcode at distinct hour.
For example, There is 2 users who parked at 20:00 - 21:00 at postcode 3000.
Here is I want for the result
Count | Postcode | Time
1 1000 5:00
2 3000 20:00
1 3000 1.00
1 3100 20:00
1 4000 10.00
Thank you