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