Looks ugly:
df_cut = df_new[ ( (df_new[\'l_ext\']==31) | (df_new[\'l_ext\']==22) | (df_new[\'l_ext\']==30
Use isin
df_new[df_new['l_ext'].isin([31, 22, 30, 25, 64])]