In R when you need to retrieve a column index based on the name of the column you could do

idx <- which(names(my_data)==my_colum_name)

Is there a way to do the same with pandas dataframes?

10 Answers
10

Leave a Reply

Your email address will not be published. Required fields are marked *