title: How to update an array in Python based on another array?
body: <p>I have two arrays in Python. </p>
  
  <p><code>array1</code> looks like this:</p>
  
  <pre><code>[[ 59.13425446  85.62345123]
   [ 59.4981575   87.67746735]
   [ 57.4234575   83.34333335]]
  </code></pre>
  
  <p><code>array2</code> looks like this:</p>
  
  <pre><code>[[ 255  255]
   [ 1.0   255]
   [ 255   1.0]]
  </code></pre>
  
  <p>I want to update <code>array1</code>. For every value in <code>array2</code> that equals <code>1.0</code>, I want to update <code>array1</code> with a value of <code>0.0</code>. In the end it should look like this:</p>
  
  <pre><code>[[ 59.13425446  85.62345123]
   [ 0.0   87.67746735]
   [ 57.4234575   0.0]]
  </code></pre>
  
  <p>How can I do this in Python?</p>