how to find if variable is dataframe or list code example Example: check if list elememnt in dataframe column if df[df['WK'].isin(wk)]