pandas rename specific column

df_new = df.rename(columns={'A': 'a'}) #change a from A

Here is what the above code is Doing:
1. We’re creating a new DataFrame called df_new.
2. We’re using the rename() method on df and specifying the columns we want to rename.
3. We’re assigning the output of the rename() method to df_new.