title: Append data in 2 dimensional array through for loop
body: <p>I have a two dimensional array. I have created two nested loops to append data to this array, but I am getting error. The error is ''numpy.float64' object has no attribute 'append''. Any help to overcome this error is appreciated.</p>
  <p>Thanks</p>
  <pre><code>arr1 = np.zeros((1000,4))
  for j in range(0,4,1):
     for i in range(0,1000,1):
        x = rho * R * T  # temperature changes for each iteration
        arr1[i][j].append(x)
  
  </code></pre>