Using Python (Pandas being acceptable) I need to compare file2 to file1 and output to file3 the rows from file2 that are either:
- Present in file1 but have some changed values
- Not present in file1
file1
ID,Format,Output,FontSize,isDefault
1,LP,LETTER,14,False
2,LP,LETTER,16,False
3,LP,LETTER,18,True
4,LP,LETTER,20,False
5,LP,LETTER,22,False
file2
ID,Format,Output,FontSize,isDefault
2,LP,LETTER,16,False
3,AU,LETTER,18,False
4,BR,LETTER,20,False
5,LP,LETTER,22,False
6,LP,LEDGER,24,False
7,LP,LEDGER,36,False
file3
ID,Format,Output,FontSize,isDefault
3,AU,LETTER,18,False
4,BR,LETTER,20,False
6,LP,LEDGER,24,False
7,LP,LEDGER,36,False
In this example the ID column is unique.