get column label pandas code example
Example 1: pd dataframe get column names
lst = data.columns.values # data is dataframe
Example 2: get column pandas
column = df["column_name"]
lst = data.columns.values # data is dataframe
column = df["column_name"]