loc filter python code example
Example 1: pandas loc for list
df.loc[df['channel'].isin(['sale','fullprice'])]
Example 2: pandas loc index not in
df.loc[set(df.index) - set(blacklist)]
df.loc[df['channel'].isin(['sale','fullprice'])]
df.loc[set(df.index) - set(blacklist)]