how to get column index from column name in pandas code example
Example: get column number in dataframe pandas
# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")
# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")