title: Accoring to the manual, numpy.squeeze() returns ndarray, but in some conditon, it doesn't, why?
body: <p>The official manula: <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.squeeze.html" rel="nofollow noreferrer">numpy.squeeze</a></p>
  
  <blockquote>
    <p><strong>Returns</strong>: squeezed : ndarray</p>
    
    <blockquote>
      <p>The input array, but with all or a subset of the dimensions of length 1 removed. This is always a itself or a view into a.</p>
    </blockquote>
  </blockquote>
  
  <p>But when I run the code below, it seems that numpy.squeeze doesn't returns a ndarray</p>
  
  <pre><code>import numpy as np
  cost = np.float64(1.1)
  print(type(np.squeeze(cost)))
  </code></pre>
  
  <p>The result is <code>&lt;class 'numpy.float64'&gt;</code>, not <code>&lt;class 'numpy.ndarray'&gt;</code>.</p>
  
  <p>I am confused, why? Is the function's documentation incomplete or is it a bug?</p>