change pandas dataframe index name code example Example: change specific column name pandas df_new = df.rename(columns={'A': 'a'}) #change a from A