title: making multi-dimensional nulls or ones from numpy array
body: <p>I want to create an array filled with ones or zeros based on this array</p>
  
  <pre><code>testArray = np.array([7,5,3])
  </code></pre>
  
  <p>so the final result should look like</p>
  
  <pre><code>[[1,1,1,1,1,1,1],
   [1,1,1,1,1],
   [1,1,1]]
  </code></pre>