pandas dataframe print column names code example
Example 1: pd dataframe get column names
lst = data.columns.values # data is dataframe
Example 2: how to find columns of a dataframe
list(my_dataframe.columns.values)
Example 3: dataframe names pandas
print(df.rename(columns={'A': 'a', 'C': 'c'}))