I am trying and failing here. All I want to do is take a "Time_of_Event" value from this dataframe:
events_data = {'Time_of_Event':[8, 22, 24,34,61,62,73,79,86]}
my_events_df = pd.DataFrame(events_data)
And search it against the "Job_Start_Times" of this dataframe:
job_data = {'Job_Start_Time':[20,50,75], 'Job_Name':['Job_01','Job_02','Job_03']}
my_jobs_df = pd.DataFrame(job_data)
And find which range it falls in, and return/append the "Job_Name" to my first "my_events_df" dataframe.
For example, for the value of 8 in "Time_of_Event", I want to return "Job_01". For the value of 61, I want to return "Job_02", as 61 falls between 50 and 75.
I've tried some for loops, if-elses, and I haven't made much progress. Any help is appreciated!