Plot correlation matrix using pandas

前端 未结 12 699
渐次进展
渐次进展 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:52

    Along with other methods it is also good to have pairplot which will give scatter plot for all the cases-

    import pandas as pd
    import numpy as np
    import seaborn as sns
    rs = np.random.RandomState(0)
    df = pd.DataFrame(rs.rand(10, 10))
    sns.pairplot(df)
    

提交回复
热议问题