pandas change column names to dataframes with variable column length code example
Example: name columns pandas
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']