I have a dataframe like below:
d = pandas.DataFrame({1:{1,2,3}}, index={0:{103,104,105}})
I want to get the index of a given row. For example, the index of df.iloc[1] should be 104. How can I do that?
You must read the pandas.dataframe.index documentation for the deep insight. Or pandas.DataFrame.index nice documentation itself.
df.index[1]d.iloc[1].namethis will return104