title: Calculating distance between two elements only in the array in python
body: <p>So I have two questions: First I'm trying to print my array that contains 1004 elements but it's printing only the first 29 elements and then jumping to 974 to continue printing. How can I get the full array of 1004 elements?</p>
  
  <p>This is my code</p>
  
  <pre><code>paired_data = []
  for x in data:
      closest, ignored = pairwise_distances_argmin_min(x, result)
      paired_data.append([x, result[closest]])
  #print paired_data
  S = pd.DataFrame(paired_data, columns=['x','center'])
  print S
  # distance
  Y = pdist(S, 'euclidean')
  print Y
  </code></pre>
  
  <p>Also I want to calculate the distance between each two elements of the array. for example </p>
  
  <p>0                [5, 4]           [3, 2]</p>
  
  <p>1               [22, -10]  [78, 90]</p>
  
  <p>I want to calculate the distance( Euclidean ) between [5, 4]  and [3, 2] and so on for all the rest of the array.</p>