📅  最后修改于: 2022-03-11 14:59:00.955000             🧑  作者: Mango
#calculates linear correlation between columns
#calculate correlation
corr_matrix = df.corr('pearson') #kind of correlation-> ‘pearson’, ‘kendall’, ‘spearman’