title: Change row values in specific pandas data frame column with python
body: <p>Following problem. </p>
  
  <p>I have a data frame with the following format. </p>
  
  <pre><code>   Col1 Col2 Col3 Col4  
  1    0    0    0    0
  2    0    0    0    0
  </code></pre>
  
  <p>Furthermore, I have a List of values that match the column names: </p>
  
  <pre><code>ColNameList1 = [Col1, Col3] #list for the first row
  ColNameList2 = [Col3, Col4] #list for the second row
  </code></pre>
  
  <p>The target is to change the value of 0 to 1 for every column row match. </p>
  
  <pre><code>    Col1 Col2 Col3 Col4  
  1    1    0    1    0 
  2    0    0    1    1
  </code></pre>
  
  <p>I did some intense research on the Pandas documentation and also google and stack overflow but it seems there is not a fitting solution for this problem. </p>
  
  <p>As always any help is much appreciated. </p>