title: 1D numpy array to float
body: <p>I want to convert a 1D numpy array to a simple float (no array).
  How is that done? Here is my current code with the variable 'acc'.</p>
  
  <pre><code>print type(acc)
  print acc.shape
  
  &gt;&gt;&gt; &lt;type 'numpy.ndarray'&gt;
  &gt;&gt;&gt; (1,)
  </code></pre>