First of all, if you are not familiar with the concept of Market Basket Analysis (MBA), Association Rules or Affinity Analysis and related metrics such as Support, Confidence and Lift, please read this article first.
Here is how we can do it in Python. We will look at two examples-
Example 1-
Data used for this example can be found here Retail_Data.csv
Example 2-
Cheers!
Pingback: Learn Data Science using Python Step by Step | RP's Blog on data science
This is nice to know few points.
I need to know detailed case study of affinity analysis in python
LikeLike
Hi Senthil:Here is a real world casestudy. Hope this is helpful
https://www.kaggle.com/c/instacart-market-basket-analysis
Best, RP
LikeLike