chnage one column name to many pandas code example
Example 1: change specific column name pandas
df_new = df.rename(columns={'A': 'a'}) #change a from A
Example 2: rename dataframe index column pandas
df.index.names = ['new_name']
df_new = df.rename(columns={'A': 'a'}) #change a from A
df.index.names = ['new_name']