django query select rows if element in a list code example Example: filter dataframe with list df[df['Your_Column'].isin([3, 6])]