title: How to loop through specific range of rows with Python csv reader?
body: <p>How to loop through a specific range of rows with Python csv reader?</p>
  
  <p>The following code loops through all rows:</p>
  
  <pre><code>with open(trainFile, 'rt') as csvfile:
      spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
      for row in spamreader:
          print (', '.join(row))
  </code></pre>
  
  <p>I wish to loop only from given (i to j).</p>