select columns to include in new dataframe in python

44

new = old[['A', 'C', 'D']].copy()
new = old.filter(['A','B','D'], axis=1)

Comments

Submit
0 Comments