data.frame col names code example
Example 1: pandas dataframe column names
print(data.columns.values)
Example 2: dataframe names pandas
print(df.rename(columns={'A': 'a', 'C': 'c'}))
print(data.columns.values)
print(df.rename(columns={'A': 'a', 'C': 'c'}))