title: How to convert string values to integer values while reading a CSV file?
body: <p>When opening a CSV file, the column of integers is being converted to a string value ('1', '23', etc.).  What's the best way to loop through to convert these back to integers?</p>
  
  <pre><code>import csv
  
  with open('C:/Python27/testweight.csv', 'rb') as f:
      reader = csv.reader(f)
      rows = [row for row in reader if row[1] &gt; 's']
  
  for row in rows:
      print row
  </code></pre>
  
  <p>CSV file below:</p>
  
  <pre class="lang-none prettyprint-override"><code>Account Value
  ABC      6
  DEF      3
  GHI      4
  JKL      7
  </code></pre>