title: How to group strings by sequential occurrence and check for values > X in another column
body: <p>for the following data structure, I would like to use Python to find the number of SEQUENTIAL occurrences of a pattern in column C0 >= than a threshold X, and the number of corresponding values in another column prcC0 that are >= than a threshold Y</p>
  
  <p>for the example below, if thresholds X = 3 and Y is 40, then the algorithm should output. rows 2:4 for string pattern B occurring >= 3 and corresponding prcC0 values >= 40</p>
  
  <p>the algorithm should scan the entire data frame for such sequential patterns. </p>
  
  <pre><code>Seq nMin    nUniqe  n3WJ    prc3WJ  C0  prcC0
  0   s00000  482 9   172 35.68   A   1.65
  1   s00001  503 10  193 38.37   A   15.33
  2   s00002  415 9   221 53.25   B   44.03
  3   s00003  325 10  155 47.69   B   42.99
  4   s00004  429 10  175 40.79   B   43.37
  </code></pre>