pandas create a dataframe using an 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 a new dataframe from existing dataframe pandas
new = old[['A', 'C', 'D']].copy()