def data_clustering(data, distance=Euclidean, linkage=AVERAGE):
 matrix = distance(data)
 return dist_matrix_clustering(matrix, linkage=linkage)

def data_clustering ( data , distance = Euclidean , linkage = AVERAGE ) : matrix = distance ( data ) return dist_matrix_clustering ( matrix , linkage = linkage )
return the hierarchical clustering of the data sets rows .