filter dataframe columns vy a list of columns

Solutions on MaxInterview for filter dataframe columns vy a list of columns by the best coders in the world

showing results for - "filter dataframe columns vy a list of columns"
Brentley
28 Sep 2018
1df.loc[:, df.columns.isin(['nnn', 'mmm', 'yyy', 'zzzzzz'])]
2
3   yyy  nnn  mmm
40   10    5    5
51    9    3    4
62    8    7    0
7