标签: python covariance
我正在使用df['col1'].cov(df['col2'])来计算数据帧df中两列之间的协方差。如何获得该协方差值的p值之类的模糊度?也许有类似于stats.pearsonr的smth会产生相关系数和p值?
df['col1'].cov(df['col2'])
df
stats.pearsonr