column names python 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)
lst = data.columns.values # data is dataframe
list(my_dataframe.columns.values)