Plot correlation matrix using pandas

前端 未结 12 742
渐次进展
渐次进展 2020-11-30 16:23

I have a data set with huge number of features, so analysing the correlation matrix has become very difficult. I want to plot a correlation matrix which we get using d

12条回答
  •  广开言路
    2020-11-30 16:48

    Seaborn's heatmap version:

    import seaborn as sns
    corr = dataframe.corr()
    sns.heatmap(corr, 
                xticklabels=corr.columns.values,
                yticklabels=corr.columns.values)
    

提交回复
热议问题