📜  可视化相关矩阵 python 代码示例

📅  最后修改于: 2022-03-11 14:46:02.788000             🧑  作者: Mango

代码示例1
import seaborn as sns
df = sns.load_dataset('iris')
corr_matrix = df.corr()
corr_matrix.style.background_gradient(cmap='coolwarm')
# 'RdBu_r', 'BrBG_r', & PuOr_r are other good diverging colormaps