I would like to rename the column names, but the Data Frame contains similar column names. How do I rename them?
df.columns
Output:
Index([ 'Goods',
'Durable goods','Services','Exports', 'Goods', 'Services', 'Imports', 'Goods', 'Services']
Here, there are three goods columns that have similar names. How can I rename a specific column?