I need to find the timeframe from the master based on the input time. cust_id starttime 0 1 2000-01-01 09:00:03 1 2 2000-01-01 18:01:03
output i needed is cust_id starttime timeframe 0 1 2000-01-01 09:00:03 morning 1 2 2000-01-01 18:01:03 evening
Code for creating master timeframe details mastdf={'timeframe':['morning','latemorning','midnoon','evening'],'start_time':['8:00:00','11:00:00','13:00:00','17:00:00'],'end_time':['10:59:59','13:59:59','16:59:59','7:59:59']}enter code here
Code for creating input dataframe inputdf={'cust_id':[1,2],'starttime':['2000-01-01 09:00:03', '2000-01-01 18:01:03']}