Questions tagged [clustermap]

For question related to seaborn.clustermap, which plots a matrix dataset as a hierarchically-clustered heatmap.. Also use the seaborn tag.

6 questions
5
votes
2 answers

Setting specific colors for values equal to zero on clustermap

I would like to have some help with the graphic output of cluster maps with seaborn. In my data, I have missing data that are transformed as 0. I would like to have a white colour for the value that are equal to zero and a palette for the rest of…
manz
  • 105
  • 1
  • 5
0
votes
0 answers

Aligning subplots with a pyplot barplot and seaborn clustermap

I am following this answer here that works for heatmap. import numpy as np import matplotlib.pyplot as plt import seaborn as sns fig, ((ax1, cbar_ax), (ax2, dummy_ax)) = plt.subplots(nrows=2, ncols=2, figsize=(26, 16), sharex='col', …
Johnny Tam
  • 423
  • 4
  • 16
0
votes
2 answers

TypeError: category type does not support sum operations (in pandas)

I have flight's seaborn dataset. import seaborn as sns flights = sns.load_dataset('flights') flights.groupby(['year']).sum() when i run this, i get error like : TypeError: category type does not support sum operations facing this issues in…
0
votes
1 answer

How to get the top 3 and bottom 3 projects for each team scale and display in a Cluster Map?

I have a table with 3 columns namely Team Scale(1 to 4), Project, Total Score. I want to display a Cluster Map for each Team Scale with the top 3 and bottom 3 projects. Can someone help me out with detailed steps or share the pbix with me? Tried out…
meow
  • 33
  • 6
0
votes
0 answers

Seaborn clustermap showing less columns that the input dataframe has

When using seaborn clustermap method, the resulting plot has less columns that the input dataframe. Does anyone know when this can happen? The input data is a 70x64 dataframe ofcounts, filled mostly with 0s. No row or column is ever all 0s As can be…
Lamma
  • 895
  • 1
  • 12
  • 26
0
votes
1 answer

Why is clustermap producing the same dendrogram when the values change?

I want to cluster the similarities of the elements of a matrix but my code produces the same dendrogram even if I change the values of the elements of matrix (in this case, the position of matrix elements changes but dendrogram doesn't change ). Do…
qasim
  • 427
  • 2
  • 5
  • 14