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()

 

posted @ 2018-04-14 03:16  Apollo_zhanghongbo  阅读(464)  评论(0编辑  收藏  举报