The most simple solution if the index matches the row numbers is df.iloc[10].name which returns 10
how to get back 10 from df.iloc[10] where df = pd.DataFrame({'a':np.arange(1,12)})?
I tried df.index but it returns a weird np.array which doesn't contain anything close to 10.
Get index of DataFrame row