change name specific column dataframe code example
Example 1: pandas rename specific column
df.rename(columns={'old_name': 'new_name'}, inplace=True)
Example 2: change specific column name pandas
df_new = df.rename(columns={'A': 'a'}) #change a from A