How to remove non-ascii infected rows in my csv
<p>I have a very large csv file that looks like this:</p>

<p>keywords,impressions<br>
descargar juegos gratis,951<br>
ãƒ‘ã‚½ã‚³ãƒ³ kakaku com,451<br>
corporate meeting,155<br>
rental cars,356<br>
smart,1224<br>
guitar tab,064<br>
è‹±è¯­ç¿»è¯‘,160</p>

<p>I have read the file into a dict like so:</p>

<pre><code># Read the CSV
filename = argv[1]
csvfile = open(filename, 'r')
csvreader = csv.DictReader(csvfile)
rows = []
for row in csvreader:
  rows.append(row) 
</code></pre>

<p>How would I delete rows with non-ascii characters so that I only end up with: </p>

<p>keywords,impressions<br>
descargar juegos gratis,951<br>
corporate meeting,155<br>
rental cars,356<br>
smart,1224<br>
guitar tab,064  </p>

<p>In short: if any non-ascii characters are present in the row the whole row must be deleted.</p>

<p>Thanks!</p>
