I have a Dataframe below. I wanted to map a True/False based on the logic:
- If Name and Number match any rows in the Dataframe, then compare if any of the number in column List exists.
- If it exists, False, else True.
Name Number List
A 905 [100,200,300,400]
A 905 [200,500]
A 905 [100,900]
A 805 [100]
A 805 [200]
B 905 [600,700]
B 905 [800,900]
It should be something like this
Name Number List Output
A 905 [100,200,300,400] False
A 905 [200,500] False
A 905 [100,900] False
A 805 [100] True
A 805 [200] True
B 905 [600,700] True
B 905 [800,900] True
Thanks in advance!