how to get list of column names in pandas code example
Example 1: how to find columns of a dataframe
list(my_dataframe.columns.values)
Example 2: pandas dataframe column names
print(data.columns.values)
list(my_dataframe.columns.values)
print(data.columns.values)