Finding label location in a DataFrame Index May 14, 2023 by Tarik You’re looking for the index method get_loc: In [11]: df.index.get_loc(ds) Out[11]: 1