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