pandas change dataframe column names code example
Example 1: python: change column name
df = df.rename(columns = {'myvar':'myvar_new'})
Example 2: name columns pandas
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']