def ward(y):
 return linkage(y, method='ward', metric='euclidean')

def ward ( y ) : return linkage ( y , method = 'ward' , metric = 'euclidean' )
performs wards linkage on a condensed distance matrix .