pandas create new dataframe from existing code example Example: copy only some columns to new dataframe in r new = old[['A', 'C', 'D']].copy()