title: Only size 1 arrays can be converted to python scalars
body: <p>I created a 3 dimensional object using <code>numpy.random</code> module such as </p>
  
  <pre><code>import numpy as np
  b = np.random.randn(4,4,3)
  </code></pre>
  
  <p>Why can't we cast type float to <code>b</code>?</p>
  
  <p><a href="https://i.stack.imgur.com/VlwLD.png" rel="nofollow noreferrer">TypeError</a></p>
  
  <p><a href="https://i.stack.imgur.com/2ssnc.jpg" rel="nofollow noreferrer">actual code</a></p>