title: error extracting element from an array. python
body: <p>I have a numpy array something like this</p>
  
  <pre><code>a = np.array(1)
  </code></pre>
  
  <p>Now if I want to get 1 back from this array. how do i retreive this??</p>
  
  <p>I have tried</p>
  
  <pre><code>a[0], a(0).. 
  </code></pre>
  
  <p>like</p>
  
  <pre><code>IndexError: 0-d arrays can't be indexed
  </code></pre>
  
  <p>or </p>
  
  <pre><code>TypeError: 'numpy.ndarray' object is not callable
  </code></pre>
  
  <p>I even tried to do some weird flattening and stuff but I am pretty sure that it shouldnt be that complicated.. 
  And i am getting errors in both.. all i want is that 1 as an int?
  Thanks</p>