daily log 10.20.20
Recursively going up the org tree
def get_report_chain(employee):
if employee == 'CEO':
return 'done'
else:
print(employee)
supervisor = df.loc[df['first_last'] == employee]['supervisor'].values[0]
return get_report_chain(supervisor)
# EXAMPLE
get_report_chain('TEST PERSON')