make a new dataframe from existing dataframe code example
Example 1: create new dataframe from existing data frame python
new = old.filter(['A','B','D'], axis=1)
Example 2: create new dataframe from existing dataframe pandas
new = old[['A', 'C', 'D']].copy()