assign name for dataframe python code example
Example 1: rename dataframe index column pandas
df.index.names = ['new_name']
Example 2: give column names to a dataframe
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']