dataframe choose column by number 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>")