Setting col_colors in seaborn clustermap from pandas
问题 I have a clustermap generated from a pandas dataframe. Two of the columns are used to generate the clustermap and I need to use a 3rd column to generate a col_colors bar using sns.palplot(sns.light_palette('red')) palette (values will be from 0 - 1, light - dark colors). The pseudo-code looks something like this: df=pd.DataFrame(input, columns = ['Source', 'amplicon', 'coverage', 'GC']) tiles = df.pivot("Source", "amplicon", "coverage") col_colors = [values from df['GC']] sns.clustermap(tiles