def pearson(wine_set):
scat1 = seaborn.regplot(x="density", y="residual_sugar", fit_reg=True, data=wine_set)
plt.xlabel("Density of wine")
plt.ylabel("Residual sugar in wine, gram")
plt.title("Association between wine's density and residual sugar")
plt.show()
print(scipy.stats.pearsonr(wine_set['density'], wine_set["residual_sugar"]))
# print('----------------Pearson Correlation------------------------')
# call(pearson)
# -----------------------------------------Exploring Statistical Interactions------------------
data_analysis.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录