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