pandas rename column dictionary code example Example: python: change column name df = df.rename(columns = {'myvar':'myvar_new'})