pandas check if value in column is in a list

df_new[df_new['l_ext'].isin([31, 22, 30, 25, 64])]

Here is what the above code is Doing:
1. We’re creating a new dataframe called df_new.
2. We’re using the .isin() method to select only the rows where the value of the l_ext column is equal to 31, 22, 30, 25, or 64.
3. We’re storing the resulting dataframe in df_new.