title: How to do Array manipulation (from 4 by 2 to 2 by 2)?
body: <p>I have the following:</p>
  
  <pre><code>for (i, (startX, startY, endX, endY)) in enumerate(rects):
      cX = int((startX + endX) / 2.0)
      cY = int((startY + endY) / 2.0)
      inputValues[i] = (cX, cY , startX,endx)
  
  D = scipy.spatial.distance.cdist(np.array(someOtherList), inputValues)
  </code></pre>
  
  <p>This <code>mcdist</code> method finds the distance between the pairs of the 2 lists.
  The <code>inputValues</code> is an array where each item is <code>x, y, startX, starty</code>.</p>
  
  <p>How can I pass input values to the method without the start/end so they don't get into the equation?</p>
  
  <p>Basically I want to pass <code>inputValues</code> to the <code>cdist</code> method as if it was:</p>
  
  <pre><code>inputValues[i] = (cX, cy)
  </code></pre>
  
  <p>I don't want to create 2 lists, so I was hoping there is a pythonic way to do it.</p>