I have two python lists in following form:
A = [(1,''), (1, 'ABC'),(1,''), (1, 'DEF'),(1,''), (1, 'GHI'),(1,''), (1, 'LMO'),(1,'')]
B = ['ABC', 'ghi', 'PQR']
(Note: A is a list of list. B is normal list.)
I want to create a pandas DF that will only contain element that are common from both the lists and the form will be:
DF :
A B
ABC ABC
GHI ghi
Please note there might be lower case- upper case and also white spaces