rename() (Pandas)

df.rename() changes column or index labels by mapping old names to new ones with a dict or a function. It is the clean, non-destructive way to relabel…