title: How to filter two columns in a csv?
body: <p>So I have a csv (<a href="https://ufile.io/y4nr9" rel="nofollow noreferrer">https://ufile.io/y4nr9</a>) which is seperated by ',' and contain columns such as: 'name','survived','sex' etc. I want to find the percentage of males that didnt survive and print the statistic. Here is my code so far:</p>
  
  <pre><code>import csv
  reader = csv.reader(open('titanic-new_alphabetized.csv'), delimiter= ',')
  filtered = filter(lambda p: 'male' == p[3], reader)
  dict = []
  
  input('press ENTER to exit')
  </code></pre>