I have two dataframes, df1 and df2. One is the initial dataframe (data obtained from a source), the other is smaller and contains some mathematical transformation. For simplicity, they both have this layout:
df1:
A B C
1 apple a
2 pear b
3 banana c
4 berry d
5 coconut e
6 mango f
df2:
A B C D E
1 apple a AT 14
2 pear b BT DA
5 coconut e OT OT
6 mango f MA AP
Essentially, I would need another dataframe, i.e. df_excluded_values, that contains the rows that have been excluded from df2, based on the A column.
Thanks!