pandas df get column name code example
Example 1: pd dataframe get column names
lst = data.columns.values # data is dataframe
Example 2: name columns pandas
>gapminder.columns = ['country','year','population',
'continent','life_exp','gdp_per_cap']