title: How to retrieve rows from a csv file using a tag string
body: <p>I have a CSV file contains data like this:</p>
  
  <p>I have write down a code which is able to retrieve the rows  which contains  "Active" at second column "outcome":</p>
  
  <p><strong>Data:</strong></p>
  
  <pre><code>No,Outcome,target,result
  1,Active,PGS2,positive
  2,inactive,IM2,negative
  3,inactive,IGI,positive
  4,Active,IIL,positive
  5,Active,P53,negative
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>new_file  = open(my_file)
  lines  = new_file.readlines()
  for line in lines:
      if "Active" in line:
          print line,
  </code></pre>
  
  <p><strong>Outcome:</strong></p>
  
  <pre><code>No,Outcome,target,result
  1,Active,PGS2,positive
  4,Active,IIL,positive
  5,Active,P53,negative
  </code></pre>
  
  <p>How can i write down this code using pandas library so that i can make this code shorter if i am using pandas functionality after retrieving the rows. </p>
  
  <p>Also this code is not suitable when you have "Active"  key word same where else in yor row because that can retrieve a false row. I found after previewing some posts that "pandas" is very suitable library for CSV Handling.  </p>