title: Put a numpy array of lists inside a numpy matrix at corresponding positions
body: <p>I have the following numpy array containing lists inside</p>
  
  <pre><code>example=np.array(([[1, 2, 3], [4, 5], [6,7]]))
  
  print(example)
  [list([1, 2, 3]) list([4, 5]) list([6, 7])]
  </code></pre>
  
  <p>I would like to put these values at the corresponding values of a numpy array of any suitable size. For example, I have the following matrix:</p>
  
  <pre><code>[[14021982. 14021982. 14021982.]
  [14021982. 14021982. 14021982.]
  [14021982. 14021982. 14021982.]]
  </code></pre>
  
  <p>Therefore, I want the output to be</p>
  
  <pre><code>[[1. 2. 3.]
  [4. 5. 14021982.]
  [6. 7. 14021982.]]
  </code></pre>
  
  <p>Is there an efficient way to that in python no matter the size of the two matrices sizes?</p>
  
  <p><strong>EDIT: I also want to know if is that possible to do that for a matrix of smaller size:</strong></p>
  
  <p>for example, I want to put the input</p>
  
  <pre><code>print(example)
  [list([1, 2, 3]) list([4, 5]) list([6, 7])] 
  </code></pre>
  
  <p>In the following matrix </p>
  
  <pre><code>  [[14021982. 14021982.]
    [14021982. 14021982.]
    [14021982. 14021982.]]
  </code></pre>
  
  <p>which would result in </p>
  
  <pre><code>    [[1. 2.]
      [4. 5.]
      [6. 7.]]
  </code></pre>