sns.set(font='monospace')
iris = load_iris()
X, y = iris.data, iris.target
DF = pd.DataFrame(X, index=[('iris_%d' % i) for i in range(X.shape[0])],
    columns=iris.feature_names)
DF_corr = DF.T.corr()
DF_dism = 1 - DF_corr
linkage = hc.linkage(sp.distance.squareform(DF_dism), method='average')
sns.clustermap(DF_dism, row_linkage=linkage, col_linkage=linkage)
How to give sns.clustermap a precomputed distance matrix?