Seaborn's clustermap uses fastcluster, but not in dependencies
See original GitHub issueTitle says it all. Ran sns.clustermap
earlier and got
Traceback (most recent call last):
File "/home/users/fgrandi/.miniconda3/lib/python3.6/site-packages/seaborn/matrix.py", line 626, in calculated_linkage
return self._calculate_linkage_fastcluster()
File "/home/users/fgrandi/.miniconda3/lib/python3.6/site-packages/seaborn/matrix.py", line 607, in _calculate_linkage_fastcluster
import fastcluster
ModuleNotFoundError: No module named 'fastcluster'
Is there a reason for this or should I submit a PR with that module added to setup.py?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
fastcluster - PyPI
This library provides Python functions for hierarchical clustering. It generates hierarchical clusters from distance matrices or from vector data.
Read more >seaborn.clustermap — seaborn 0.12.1 documentation - PyData |
clustermap. Plot a matrix dataset as a hierarchically-clustered heatmap. This function requires scipy to be available.
Read more >| notebook.community
Let's look at the distance matrix using a nice seaborn clustermap plot. It's worth noting that seaborn is using scipy's cluster.hierarchy functions to...
Read more >How to arrange y-labels in seaborn clustermap when using a ...
I am trying to customize y-labels of a clustermap from seaborn with a multiindex dataframe. So I have a dataframe that looks like...
Read more >Introduction to Seaborn | H2kinfosys Blog
Matplotlib predated Pandas by more than a decade and thus is not designed for use with Pandas DataFrames. To visualize data from a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same error, with fastcluster throwing a ModuleNotFoundError and not falling back to scipy. Downloading fastcluster as well.
I suspect that people are getting errors during clustering and seeing the fastcluster exception because it is part of the stack trace (it gets caught and then the code moves on to use scipy), but it is not the actual cause of their problem. However, nobody has provided sufficient information to provide help beyond speculation.