title: Parallelizing of a loop in python
body: <p>how can I parallelize my loop in python?
  this code takes 60-70 seconds and I need to run it for 14400 times. 
  Can you please help me to speed up the code. </p>
  
  <pre><code>AOD_mask = np.zeros([1200, 1200])
  for i in range(0, 1200):
      for j in range(0, 1200):
          if (np.nansum(AOD_MODEL[:, i, j]) == np.count_nonzero(~np.isnan(AOD_MODEL[:, i, j])) * 6.):
              AOD_mask[i, j] = 0
          else:
              AOD_mask[i, j] = np.NaN
  </code></pre>