title: how to extract index value and element value from pandas dataframe
body: <p>I have a dataframe that contains the following,</p>
  
  <pre><code>                   Reading
  Date                        
  2020-05-09 14:54:00    13661
  2020-05-09 14:55:00    13672
  2020-05-09 14:56:00    14251
  2020-05-09 14:59:00    15255
  </code></pre>
  
  <p>I have figured out how to extract the last element:</p>
  
  <p>lastelement=(series["Reading"].iloc[-1]) </p>
  
  <p>which gives me "15255"  </p>
  
  <p>Note:the first column is the index not a column in the dataframe as such. </p>
  
  <p>so I also want to extract the index value for that same element (which may not be unique int the readings column), i.e. "2020-05-09 14:59:00" </p>
  
  <p>I can anybody help?</p>
  
  <p>thanks</p>
  
  <p>(forgive me if my question is poor, its my first post on stackoverflow! - I can usually work my answers out from all of the other questions/answers presented here)</p>