python pandas .loc cannot be found code example Example: pandas loc index not in df.loc[set(df.index) - set(blacklist)]