Skip to content

Instantly share code, notes, and snippets.

View waleedasif322's full-sized avatar

waleed asif waleedasif322

View GitHub Profile
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)