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