python search row in list of values code example Example: pandas dataframe select rows not in list df[~df.isin(subset).iloc[:,0]]