title: Populate values from one numpy array into another
body: <p>I have some data in a numpy array, for example:</p>
  
  <pre><code>a = np.array([1,2,3,4,5,6,7,8,9,10])
  </code></pre>
  
  <p>I then want to subset some values from this array, i.e:</p>
  
  <pre><code>b = a[a &gt; 5]
  </code></pre>
  
  <p>so that:</p>
  
  <pre><code>b = np.array([6,7,8,9,10])
  </code></pre>
  
  <p>I then conduct some simple calculations on this subset, i.e.:</p>
  
  <pre><code>c = b + 1
  </code></pre>
  
  <p>so that:</p>
  
  <pre><code>c = np.array([7,8,9,10,11])
  </code></pre>
  
  <p>I then want to repopulate the original array with the updated values, so that I end up with:</p>
  
  <pre><code>d = np.array([1,2,3,4,5,7,8,9,10,11])
  </code></pre>
  
  <p>My real data is obviously more involved than this so I would like to avoid doing it in one line just by indexing the values of interest from the original array (unless of course this is the easiest way of doing it). </p>
  
  <p>Any help provided to populate the values in array <code>c</code> back into array <code>a</code> in order to get to array <code>d</code> would be much appreciated.</p>