I have two workbooks that needs to be compared and then print the differences into a 3. workbook. There is only one worksheet in each. for now, I user pandas to compare and print the result into the command line. I'm very new to Python and do not know much yet.
Here is the code I have so far:
import pandas as pd
df1 = pd.read_excel('DNS_Master_List.xlsx')
df2 = pd.read_excel('CopyList.xlsx')
difference = df1[df1!=df2]
print (difference)