2024-06-28 19:18:57 发布
网友
我正在使用pandascorr(),如下使用我的数据帧df
corr()
df
print(df.corr())
但是,pandas文档没有说明如果我们将其保持为空,将分配什么作为默认correlation method
correlation method
链接到文档:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.corr.html
我想知道熊猫中默认的相关方法是什么
如果需要,我很乐意提供更多细节
您可以从documentation中看到:
DataFrame.corr(method='pearson', min_periods=1)
所以它使用皮尔逊标准相关系数
您可以从documentation中看到:
所以它使用皮尔逊标准相关系数
相关问题 更多 >
编程相关推荐