how to check if column names are there in pandas dataframe code example Example: check if list elememnt in dataframe column if df[df['WK'].isin(wk)]