How do I get the name of the rows from the index of a data frame? February 26, 2023 by Tarik df.index outputs the row names as pandas Index object. list(df.index) casts to a list. df.index['Row 2':'Row 5'] supports label slicing similar to columns.