I have a dataframe in which a user's daily entry and exit is noted, but the user comes at different time each day, for example below is the input user data
Date UserID Intime Outtime
2018-06-29 73456 2018-06-29 07:30:54 2018-06-29 15:30:13
2018-06-28 73456 2018-06-28 08:29:23 2018-06-28 17:28:31
2018-06-27 73456 2018-06-27 11:26:02 2018-06-27 19:30:09
2018-06-26 73456 2018-06-26 14:20:42 2018-06-26 23:25:38
2018-06-25 73456 2018-06-25 07:31:19 2018-06-25 16:24:26
I need to maintain a hourly record of this user. so in a separate sheet i have the date and time on hourly basis. i need to add 1
in the user field, in which hour the user is in. for example output data.
Hours User
2018-06-29 0:00:00
2018-06-29 1:00:00
2018-06-29 2:00:00
2018-06-29 3:00:00
2018-06-29 4:00:00
2018-06-29 5:00:00
2018-06-29 6:00:00
2018-06-29 7:00:00 1
2018-06-29 8:00:00 1
2018-06-29 9:00:00 1
2018-06-29 10:00:00 1
2018-06-29 11:00:00 1
2018-06-29 12:00:00 1
2018-06-29 13:00:00 1
2018-06-29 14:00:00 1
2018-06-29 15:00:00 1
2018-06-29 16:00:00
2018-06-29 17:00:00
I am able to create hour column but not able to mark attendance for hour in which user is in.
Any help will be highly appreciated. Thank you !