question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Seaborn's clustermap uses fastcluster, but not in dependencies

See original GitHub issue

Title 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
MollieBakalcommented, Jun 18, 2019

I have the same error, with fastcluster throwing a ModuleNotFoundError and not falling back to scipy. Downloading fastcluster as well.

1reaction
mwaskomcommented, Dec 19, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found