iqr_filter['iqr'] = iqr_filter[0.75] - iqr_filter[0.25]
iqr_filter['lo'] = iqr_filter[0.25] - 1.5 * iqr_filter['iqr']
iqr_filter['up'] = iqr_filter[0.75] + 1.5 * iqr_filter['iqr']
df_filtered = df.loc[((df['count'] > iqr_filter['lo'][0]) & (df['count'] <
    iqr_filter['up'][0])), :]
Как найти значения ниже (или выше) среднего