title: How to update row based on multiple condition
body: <p>I have a df </p>
  
  <pre><code>+------+-------+-----+
  |values|percent|ecpc |
  +------+-------+-----+
  |  010 |  0.11 |    5|
  |  100 |  0.22 |    4|
  |  001 |  0.33 |    3|
  |  011 |  0.01 |    5|
  |  101 |  0.005|    4|
  |  110 |  0.11 |    3|
  |  000 |  0.21 |    5|
  |  111 |0.0001 |    4|
  +------+-------+-----+
  </code></pre>
  
  <p>If percent <code>&lt; 0.01</code> ,I wanna change values one of <code>1</code> to <code>0</code>. 
  AND Changed percent <code>&gt; 0.01</code>, change ecpc to new ecpc.</p>
  
  <p>EX: for values 111, percent<code>&lt;0.01</code>, change one of <code>1</code> to <code>0</code>, like <code>101</code>,
  still percent<code>&lt; 0.01</code>, change other 1, like 110, percent<code>&gt;0.01</code>  is <code>0.11</code>,
  change another 1, like 011, percent<code>&gt;0.01</code> is 0.01. <code>0.01 &lt;0.11</code> . 
  Update ecpc to 5 when <code>values = 111</code>.</p>
  
  <p>Final DF like :</p>
  
  <pre><code>+------+-------+-----+------+
  |values|percent|ecpc |change|
  +------+-------+-----+------+
  |  010 |  0.11 |    5|     0|
  |  100 |  0.22 |    4|     0|
  |  001 |  0.33 |    3|     0|
  |  011 |  0.01 |    5|     0|
  |  101 |  0.005|    5|     1|
  |  110 |  0.11 |    3|     0|
  |  000 |  0.21 |    5|     0|
  |  111 |0.0001 |    3|     1|
  +------+-------+-----+------+
  </code></pre>