loc search elemnt dataframe code example
Example 1: pandas loc for list
df.loc[df['channel'].isin(['sale','fullprice'])]
Example 2: dataframe loc change values
%timeit df.at['Bill', 'language'] = 'Python'
df.loc[df['channel'].isin(['sale','fullprice'])]
%timeit df.at['Bill', 'language'] = 'Python'