Let's say I have a pandas dataframe, which looks as follows:
Column1 Column2 Column3
A 1 Y8
B 1 G2
C 1 T1
D 2 A6
E 2 P0
F 3 M2
G 4 O2
I want to remove all values from this dataframe which appear in this list, called 'excl_list', if they are contained in Column3. The idea would be to exclude by the list object and not the individual items in the list:
['A6','P0','M2']
How would I go about doing that?