I have this which works, but I would like to put this into a list comprehension to save computing power
emp_id=df_hours["EMPLOYEE"]
emp_list=df_item["EMPLOYEE"]
##############
#loop through and get values for the day for hours worked per server, and add them to building df
#############
hours_worked=df_hours["HOURS"]
emp_found=[]
for x in range(len(emp_list)):
for i in range(len(emp_id)):
if emp_list[x] == emp_id[i]:
emp_found.append(hours_worked[i])
inex=0
last=len(emp_list)
hours_wored=emp_found[inex:last]
df_item['HRS']=hour_worked