title: Python: How do I create 2x2 array with NumPy?
body: <p>I want 2x2 array which I want to add elements. I use numpy. What am I doing wrong??
  For example:</p>
  
  <pre><code>for i in range(len(pin)):
      for k in range(len(pin)):
          sumv = 0
          for j in range(len(pin[i])):
              sumv = sumv + ...
              c = np.data(sumv).reshape(len(pin),len(pin))
  print c
  </code></pre>
  
  <p>Output:</p>
  
  <blockquote>
    <p>AttributeError: 'module' object has no attribute 'data'</p>
  </blockquote>
  
  <p>What should I write?</p>