title: Need help getting first 2 rows of csv file with this format
body: <p>I am trying to print out the first 2 rows of my <code>csv</code> file with this format. I have tried different things, but keep getting errors. </p>
  
  <p>The code below currently works great for formatting the output of the entire <code>csv</code> file, but now I need to just grab the first two rows. Any help will be greatly appreciated. </p>
  
  <p>I have looked everywhere for the answer on this site, some come close, but not getting what I want. </p>
  
  <p>I am new to <code>python</code> and also new to using csv files. Thanks in advance.</p>
  
  <pre><code>f1 = open("csvfile.csv")
  csv_f = csv.reader(f1)
  for row in csv_f:
  print '{:&lt;13}{:^10}{:^10}{:^10}{:^10}{:^10}{:^8}'.format(*row)
  </code></pre>