how to get a panda column code example
Example 1: get column number in dataframe pandas
# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")
Example 2: get column pandas
column = df["column_name"]
# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")
column = df["column_name"]