title: How to read a comma-separated value from a CSV file as an integer?
body: <p>I am having a bit of trouble reading data from a CSV file as an integer.</p>
  <p>Here is an example of my CSV file:</p>
  <pre><code>Col1    Col2    Col3
  Header  Header  Header
  Header  1       1,000,000
  BLANK   2       500,000
  BLANK   3       200,000
  </code></pre>
  <p>What I am wanting to do is read in the data from 'Col3' (not including the header) as integers into a tuple.</p>
  <p>Here is my code:</p>
  <pre><code>import csv
  prizePoints = []
  with open(&quot;csvfile.csv&quot;) as prizes:
      next(prizes)
      for row in prizes:
          prizePoints.append(row)
  </code></pre>
  <p>When I try this, I get an error that says:</p>
  <pre><code>ValueError: invalid literal for int() with base 10: '&quot;1'
  </code></pre>
  <p>Example of printed row:</p>
  <pre><code>['', '1', '1,000,000']    
  </code></pre>
  <p>I think it is due to the values in 'Col3' having commas. However, I am unsure of how to fix this so any help would be greatly appreciated!</p>
  <p>P.S. I can't change the format of the values for 'Col3' so that they do not have commas.</p>