Filtr DataFrame z listą
df[df['Your_Column'].isin([3, 6])]
Magnificent Moth
df[df['Your_Column'].isin([3, 6])]
In [4]: df[~df['A'].isin([3, 6])]
Out[4]:
A B
0 5 1
3 4 5