title: How to reshape numpy array of array into single row
body: <p>I have a numpy array as </p>
  
  <pre><code>[[0 0 0 ..., 0 0 0]
   [0 0 0 ..., 0 0 0]
   [0 0 0 ..., 0 0 0]
   ..., 
   [0 0 0 ..., 0 0 0]
   [0 0 0 ..., 0 0 0]
   [0 0 0 ..., 0 0 0]]
  </code></pre>
  
  <p>I would like to have it as </p>
  
  <pre><code>0
  0
  0
  .
  .
  0
  0
  </code></pre>
  
  <p>I know that we have to use the reshape function, but how to use it, is I am not able to figure out,</p>
  
  <p>my attempt  </p>
  
  <pre><code>np.reshape(new_arr, newshape=1)   
  </code></pre>
  
  <p>Which gives an error   </p>
  
  <pre><code>ValueError: total size of new array must be unchanged
  </code></pre>
  
  <p>The <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html" rel="nofollow noreferrer">documentation</a>  isn't very friendly</p>