use dataframe loc to determin if value is in list code example Example: pandas loc index not in df.loc[set(df.index) - set(blacklist)]