title: match a specific string in excel and print those rows using python
body: <p>i am trying to print values from 4 columns in a excel. i need to match on a particular string in the 4th column and then print only those rows which have that string. (eg: if my 4th column in the 2nd row contains 'Sweet' i will print the entire row) </p>
  
  <p>sample excel:</p>
  
  <pre><code>name; number; fruit;  comment
  test1 ;1   ;  apple ; healthy
  test2; 2;     banana ;sweet and healthy
  </code></pre>
  
  <p>here row2 should be printed</p>
  
  <p>so far i have this , couldn't get to exact way to match string. </p>
  
  <pre><code>import gzip
  import csv, io
  
  with gzip.open("/test.csv.gz", "r") as file:
        datareader = csv.reader(file)
  
        included_cols = [9, 10, 11]
        for row in datareader:
          content = list(row[i] for i in included_cols if row[i])
          print content
  </code></pre>