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?
This is my 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
Also I want to calculate the distance between each two elements of the array. for example
0 [5, 4] [3, 2]
1 [22, -10] [78, 90]
I want to calculate the distance( Euclidean ) between [5, 4] and [3, 2] and so on for all the rest of the array.