title: Appending values from one array, if value in another array is greater than a certain value, else append that value
body: <p>Say for example I have two arrays of equal length.</p>
  
  <pre><code>x = np.array([-34, 1, -12, 4, 5, -5])
  
  y = np.array([2, -1, 4, 6, 7, 4])
  </code></pre>
  
  <p>I want to create a new array or list of equal length where if the value of x is less than a certain number (g) then it appends (g) otherwise it will append y.</p>
  
  <p>So in the above two arrays lets say if x is less than -5 it will append -5, otherwise it will append the value of y. It would turn out to the following:</p>
  
  <pre><code>new_array = ([-5, -1, -5, 6, 7, 4])
  </code></pre>