how to get the column numbers of a dataframe in python 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>")