📜  pearson 相关系数公式 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:00.955000             🧑  作者: Mango

代码示例3
#calculates linear correlation between columns
#calculate correlation
corr_matrix = df.corr('pearson') #kind of correlation->  ‘pearson’, ‘kendall’, ‘spearman’