title: Assigning values to a NumPy array
body: <p>Can someone explain to me why attempt #1 does not work?</p>
  
  <pre><code>import numpy as np    
  x = np.zeros(1, dtype=np.dtype([('field', '&lt;f8', (1,2))]))
  </code></pre>
  
  <p>Attempt #1:</p>
  
  <pre><code>x[0]['field'] = np.array([3.,4.], dtype=np.double)
  print x, '\n'
  </code></pre>
  
  <blockquote>
    <p><code>[([[ 3.  0.]])]</code> (why was only the <code>'3'</code> copied over?)</p>
  </blockquote>
  
  <p>Attempt #2: </p>
  
  <pre><code>x['field'][0] = np.array([3.,4.], dtype=np.double)
  print x
  </code></pre>
  
  <blockquote>
    <p><code>[([[ 3.  4.]])]</code> (this worked)</p>
  </blockquote>