title: How to format numpy arrays?
body: <p>I have data that looks like this</p>
  
  <pre><code>listL= array([array([-12939613.07220617,   3962855.50690994]),
         array([-12939614.67349505,   3962828.80807231]),
         array([-12939484.00289515,   3962828.1637531 ]),
         array([-12939484.98046737,   3962854.91251931]),
  
  print(type(listL)) -&gt; &lt;class 'numpy.ndarray'&gt;
  print(type(listL[0])) -&gt; &lt;class 'numpy.ndarray'&gt;
  print(type(listL[0][0])) -&gt; &lt;class 'numpy.float64'&gt;
  </code></pre>
  
  <p>I have a second piece of data that looks like this:</p>
  
  <pre><code>A = array([[ 73.87682896,   8.55827956],
         [ 57.43741519,  10.40224912],
         [ 87.88970753,  75.42971056],
  
  print(type(A)) -&gt; &lt;class 'numpy.ndarray'&gt;
  print(type(A[0])) -&gt; &lt;class 'numpy.ndarray'&gt;
  print(type(A[0][0])) -&gt; &lt;class 'numpy.float64'&gt;
  </code></pre>
  
  <p>The types are the same across both sets of data, but I have a function that works with 'A', but not with 'listL' and I cannot figure out why.</p>
  
  <pre><code>A[spatial.KDTree(A).query(coordinate)[1]]
  </code></pre>
  
  <p>works, but</p>
  
  <pre><code>listL[spatial.KDTree(listL).query(coordinate)[1]]
  </code></pre>
  
  <p>returns the error:</p>
  
  <pre><code>not enough values to unpack (expected 2, got 1)
  </code></pre>