Access the row number by its index Access the row number by its index pandas pandas

Access the row number by its index


You can also use get_loc:

df.index.get_loc(index_value)Out[67]: 1