title: How to read head and tail of CSV file with python
body: <p>I have a csv file with a timestamp field where first line indicates start time and last line specifies end time as a time frame. How can I get them using python?</p>
  
  <p>CSV file:</p>
  
  <pre><code>run,a,b,2015-10-25T18:02:30.798426Z  
  run,c,d,2015-10-25T18:02:30.807375Z
  run,e,f,2015-10-25T18:02:30.809113Z
  run,g,h,2015-10-25T18:02:30.825410Z
  run,i,j,2015-10-25T18:02:30.843917Z
  run,k,l,2015-10-25T18:02:30.850492Z
  run,m,n,2015-10-25T18:02:30.858041Z
  run,o,p,2015-10-25T18:02:30.859345Z
  run,q,r,2015-10-25T18:02:30.862365Z
  </code></pre>
  
  <p>Thanks.</p>