rename column panda python2 code example
Example 1: df change column names
df.rename(columns={"A": "a", "B": "b", "C": "c"},
errors="raise", inplace=True)
Example 2: name columns pandas
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']