October 2018
Beginner to intermediate
676 pages
18h 30m
English
Here are the steps to plot two cluster maps, one with raw data in the Wine Quality dataset, and the other with the associated correlation matrix:
row_colors = wine_quality["Quality"].map(dict(zip(wine_quality["Quality"].unique (), "rbg")))g = sns.clustermap(wine_quality.drop('Quality',axis=1), standard_scale=1, robust=True, row_colors=row_colors, cmap='viridis')
g = sns.clustermap(corr, figsize=(10,8), z_score=1, cbar_kws={"label": "color bar"})
Read now
Unlock full access