returns the index of a column 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>")