I have a pandas data frame new and want to drop rows if the column Name contains certain values specified in a list lst.
Original DF:
        Name         
0  Jack Wang 
1  Jack Lee 
2  Mabel Smith
3  Amber Golden
lst = ['Wang', 'Smith']
Desired DF:
        Name   
1  Jack Lee
2  Amber Golden 
Below is my code:
for i in range(len(new)):
    if any(elem in lst for elem in new['Name'][i].split()) == True:
        new2 = new.drop([i])
However, it could identify rows with Name column containing values in lst, but the rows could not be dropped.
Thanks in advance!
