select columns that are in a list pandas code example Example: dataframe select columns based on list df.filter(lst)