📜  相关python代码示例

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

代码示例3
# option 1
corr_matrix = df.corr()
corr_matrix.style.background_gradient(cmap='coolwarm')

# option 2
plt.figure(figsize=(10,10))
cor = df.corr()
sns.heatmap(cor, annot=True, cmap=plt.cm.Blues)