This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.cluster.hierarchy as hc | |
import pandas | |
from matplotlib import pyplot | |
# copy the data to the clipboard first | |
d = pandas.read_clipboard(sep=",", index_col=0) | |
link = hc.linkage(d.values, method='weighted') | |
o1 = hc.leaves_list(link) |