search for list of values in dataframe code example
Example 1: filter dataframe with list
df[df['Your_Column'].isin([3, 6])]
Example 2: pandas dataframe select rows not in list
df[~df.isin(subset).iloc[:,0]]
df[df['Your_Column'].isin([3, 6])]
df[~df.isin(subset).iloc[:,0]]