I am trying to rename my columns with the previous column name with a number on the end to make the columns unique. Is there a way to achieve this?
CurrentDF:
Reconnaissance Unnamed: 1 Resource Development Unnamed: 3 Initial Access Unnamed: 5
Active Scanning Scanning IP Blocks Acquire Infrastructure Botnet Drive-by Compromise NaN
Desired:
Reconnaissance Reconnaissance_1 Resource Development Resource Development_1 Initial Access Initial Access_1
Active Scanning Scanning IP Blocks Acquire Infrastructure Botnet Drive-by Compromise NaN