how to use Or in python column filter 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]