We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to plot a dendrogram using scipy's hierarchy clustering.
When I try to add the dataframe columns as the labels for the create_dendrogram() function,
Is there any way for me to make it work?
It works well with scipy's inbuilt dendrogram() function.
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
@apatange-source I met the same problem, how did you fix it?
Try using this: x = np.transpose(df.astype(float))
x = np.transpose(df.astype(float))
fig = ff.create_dendrogram( X=x, labels=df.columns.to_list(), linkagefun=lambda x: hierarchy.linkage(x, method), )
@apatange-source I met the same problem, how did you fix it? 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), )
Thanks!
No branches or pull requests
I'm trying to plot a dendrogram using scipy's hierarchy clustering.
When I try to add the dataframe columns as the labels for the create_dendrogram() function,

Is there any way for me to make it work?
It works well with scipy's inbuilt dendrogram() function.
The text was updated successfully, but these errors were encountered: