get columns in pandas code example
Example 1: how to find columns of a dataframe
list(my_dataframe.columns.values)
Example 2: get column pandas
column = df["column_name"]
Example 3: python pandas return column name of a specific column
# Basic syntax:
list(df.columns)[column_number]
# This returns the column name of the column of interest