Skip to content

Instantly share code, notes, and snippets.

@DerekHawkins
Created June 1, 2022 02:10
Show Gist options
  • Save DerekHawkins/e61e9f1cd09d2a5414a363900b748d47 to your computer and use it in GitHub Desktop.
Save DerekHawkins/e61e9f1cd09d2a5414a363900b748d47 to your computer and use it in GitHub Desktop.
import pandas as pd
# Import customer list for company match and employee list for department atribution
df_customer_list = pd.read_excel('---.xlsx', skiprows=10)
customers = df_customer_list[['Company']]['Company'].to_list()
employee_list = pd.read_excel('---.xlsx')
employee_list['Full Name'] = [f"{employee_list['First Name'][i]} {employee_list['Last Name'][i]}" for i in range(employee_list.shape[0])]
employee_list = employee_list[['Full Name', 'Department']].rename(columns={'Full Name':'Employee (if channel=employee sharing)'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment