You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
scipy.cluster.hierarchy.linkage not working with plotly.figure_factory.create_dendrogram() [LABELS] #3485
Activity
apatange-source commentedon Nov 23, 2021
Also there is a difference between the plolty dendrogram and the scipy dendrogram when I try to plot the plotly one without the label

s.
sheepshaker1011 commentedon Dec 28, 2021
@apatange-source I met the same problem, how did you fix it?
apatange-source commentedon Dec 29, 2021
Try using this:
x = np.transpose(df.astype(float))fig = ff.create_dendrogram( X=x, labels=df.columns.to_list(), linkagefun=lambda x: hierarchy.linkage(x, method), )sheepshaker1011 commentedon Jan 7, 2022
Thanks!