filter by matching row pandas code example Example: pandas filter df[(df['year'] > 2012) & (df['reports'] < 30)]