Holen Sie sich die Spaltennummer in DataFrame Pandas
# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")
Gifted Gannet
# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")