If df is dataframe in pandas df.columns gives the list of all columns. We can then form new columns by selecting columns.
If there are two columns with the same name then both columns get copied to the new dataframe.