def num_obs_linkage(Z):
    Z = np.asarray(Z, order='c')
    is_valid_linkage(Z, throw=True, name='Z')
    return (Z.shape[0] + 1)
Returns the number of original observations of the linkage matrix
dataset/ETHPy150Open scipy/scipy/scipy/cluster/hierarchy.py/num_obs_linkage