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