get records having values equal to a list python code example Example: pandas dataframe select rows not in list df[~df.isin(subset).iloc[:,0]]