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