Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get column number in dataframe pandas

# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #column #number #dataframe #pandas
ADD COMMENT
Topic
Name
4+5 =