name column pandas * code example
Example 1: pandas dataframe column names
print(data.columns.values)
Example 2: name columns pandas
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']
print(data.columns.values)
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']