I have three dataframes [Accepted, Ignored, Input]. We have to check the "Subset" column strings of Input df in the subset columns of accepted and ignored df. If the subset are not present in both of them, we have to keep them in exception. [Strings should match exactly]] For eg.
Accepted df is
Accepted Accepted
AC ASD
ZX AGH
Ignored df is
Ignored Ignored
AD ADS
Input df is
Name Subset
Apple AC,AC,AD,AGH
Bat ZX,ADS,AXC
Cat HJ,AGH
Output we need:
Name Subset Accepted Ignored Exception
Apple AC,AC,AD,AGH AC,AC,AGH AD
Bat ZX,ADS,AXC ZX ADS AXC
Cat HJ,AGH AGH HJ
All the dataframes can have multiple rows and columns.
How can I do it using Python.