title: How do I get the name of the rows from the index of a data frame?
body: <p>Consider a data frame with row names that aren't a column of their own per se, such as the following:</p>
  
  <pre><code>        X  Y
   Row 1  0  5
   Row 2  8  1
   Row 3  3  0
  </code></pre>
  
  <p>How would I extract the name of these rows as a list, if I have their index?
  For example, it would look something like: </p>
  
  <pre><code>function_name(dataframe[indices])
  &gt; ['Row 1', 'Row 2']
  </code></pre>