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