I would like to merge two Pandas dataframes together and control the names of the new column values.
I originally created the dataframes from CSV files. The original CS
The suffixes option in the merge function does this. The defaults are suffixes=('_x', '_y').
suffixes
suffixes=('_x', '_y')
In general, renaming columns can be done with the rename method.