title: Testing which is greater but value changes
body: <p>I have a dataset df which I would like to test at the indicator, how many of the value is greater than the testing threshold. For example for A, I want to test how many of it exceeds threshold value1 of -1, how many exceeds threshold value2 of -0.5, threshold value3 of 1 and threshold value4 of 2. The thing is my testing threshold is different for each A,B and C. How should I loop it?</p>
  <pre><code>   df &gt;
      A     B       C     
      1     5       2     
      2    12       3     
      3    -1       4    
      4     0       6    
      5    -9     -13    
      6    0.1      2     
      7    1        3     
  </code></pre>
  <p>Testing threshold</p>
  <pre><code> ID    value1 value2 value3 value4
   A         -1   -0.5    1      2  
   B          1    6      9     12  
   C          3    3.2    3.4    3.5
  </code></pre>
  <p>Desired Output for A</p>
  <pre><code>ID    value1 value2 value3 value4
  A        7       7       6      5 
  </code></pre>