pandas filter value in set code example
Example 1: pandas filter rows by value in list
df.loc[df['col name'].isin(ls_conditions)]
Example 2: pandas column filter
filter = df['column']!= 0
df = df[filter]
df.loc[df['col name'].isin(ls_conditions)]
filter = df['column']!= 0
df = df[filter]