seaborn画协方差矩阵

https://blog.csdn.net/a19990412/article/details/79304944

求DataFrame的协方差矩阵

df.corr()

import seaborn as sns
plt.subplots(figsize=(3,3))
sns.heatmap(df_cov, annot=True, vmax=1, square=True, cmap='Blues')
plt.show()

 

转载于:https://www.cnblogs.com/HITSZ/p/8827508.html

你可能感兴趣的:(seaborn画协方差矩阵)