pandas check if column value in list code example
Example 1: pandas check if value in column is in a list
df_new[df_new['l_ext'].isin([31, 22, 30, 25, 64])]
Example 2: check if list elememnt in dataframe column
if df[df['WK'].isin(wk)]
df_new[df_new['l_ext'].isin([31, 22, 30, 25, 64])]
if df[df['WK'].isin(wk)]