我有一个包含 130 个变量的数据集,我必须检查所有变量的相关性,有没有办法一次性检查它

I have a dataset of 130 variables and I have to check the correlation of all variables, is there any way to check it in once

我有一个包含 130 个变量的数据集,我必须检查所有变量的相关性,一旦我刚接触数据科学并使用 pandas,有没有什么方法可以检查它,请提供一种方法. 我必须做假设....

您本可以在其他地方轻松找到这个问题的答案 但是由于您是数据科学的新手...

# First read the dataset into a dataframe
data = pd.read_excel(file_name)

# Find correlation among all the columns (features / variables)
# methods can be changed
data.corr(method='pearson')