pandas get position of a given index in dataframe,base = df.index.get_loc(18)