def quartileSplit(wine_set):
print("This is the quartile split of the wines' quality. I-st column contains the intervals of wines' quality;")
print("II-nd - the number of wine samples with the quality in the corresponding interval.")
wine_set["quality_quart"] = pd.qcut(wine_set["quality"], 3)
print(wine_set.groupby("quality_quart").size())
data_manag&visualization.py 文件源码
python
阅读 27
收藏 0
点赞 0
评论 0
评论列表
文章目录