我有一个CSV,其中包含销售数据,我想通过迭代来列出同一买家经常购买的类别。我想我可以用字典和a script like this来做到这一点,但我很难概念化如何计算同一个买家在不同类别中出现的次数。你知道吗
CSV数据示例:
buyer_id | order_id | category
1, 10, shoes
1, 11, outerwear
2, 12, beauty
2, 13, shoes
2, 14, outerwear
在这个例子中,我想知道鞋子,外套是一个组合至少2倍。你知道吗
Tags:
相关问题 更多 >
编程相关推荐