filter columns based on list of column names + python code example
Example: filter dataframe columns vy a list of columns
df.loc[:, df.columns.isin(['nnn', 'mmm', 'yyy', 'zzzzzz'])]
yyy nnn mmm
0 10 5 5
1 9 3 4
2 8 7 0