def ward(y):
    return linkage(y, method='ward', metric='euclidean')
Performs Ward's linkage on a condensed or redundant distance matrix.
dataset/ETHPy150Open scipy/scipy/scipy/cluster/hierarchy.py/ward