# Filter dataframe by multiple values in a column or multiple columns # SQL equivalent: WHERE columnA IN ('val1', 'val2') AND columnB > 70 df[ (df.columnA.isin(['val1', 'val2'])) & (df['columnB'] > 70) ]