I have three dataframes.
d1 - new data
A;B;C A
BC KG;8530;8604269
ABC KG;8530;8604290
ABC KG;8530;8604291
d2 is history data.
A;B;C
ABC KG;8530;8604269
ABC KG;8530;8604290
Firm KG;8530;8604267
Firm KG;8530;8604268
d3 changes
ABC KG;8530;8604291
If I have some rows in d1 which do not exist in d2 then changes in d3 will be the rows only from d1.
After compare I want to write d3 changes in file and then add d3 changes in d2 History.
After first run I will have in
d3 changes
ABC KG;8530;8604291
then d3 add to d2
After second run I will have in d3 changes NULL
Because ABC KG;8530;8604291
exists in d2
how to solve this problem?