df.rename(columns={'old_name': 'new_name'}, inplace=True)
df_new = df.rename(columns={'A': 'a'}) #change a from A
data.rename(columns={'oldName':'newName'}, inplace=True)