is python loc a dataframe code example
Example 1: pandas loc for list
df.loc[df['channel'].isin(['sale','fullprice'])]
Example 2: df.loc a list of index
df[df.index.isin([1,3])]
df.loc[df['channel'].isin(['sale','fullprice'])]
df[df.index.isin([1,3])]