I have a quick script using python and pandas thats supposed to compare two excel sheets, grab the information that i need and create a new file. However when it creates the new file or if i just print it for testing one of the columns is coming back empty depending on where i merge (left of right)
import pandas as pd
base_data = pd.read_excel("UpdatedList.xls") - #this sheet has Names and clock number
today_data = pd.read_excel("LocationUP.xlsx") - #this sheet has Names and where employees are working.
merge_data = base_data[["Names", "Clock Number" ]].merge(today_data[["Names", "Job"]], on="Names", how="right") #this line merges the two and creates a new files using the excel row "Names" as a merging key
# merge_data.to_excel("EmployeeLocationInner.xlsx", index=False)
print(merge_data.to_string())