There should be no necessary libraries to run the code here beyond the Anaconda distribution of Python. The code should run with no issues using Python versions 3.*.
For this project, I was interestested in knowing how people respond to offers sent to them:
- Which offer type do people respond to most?
- Are teens influenced offers or not?
- Do lower income people use BOGO (Buy One Get One) offer more than other offers?
- What percentage of people complete the offer without seeing the offer??
There is 1 notebook available here to showcase work related to the above questions. Markdown cells were used to assist in walking through the thought process for individual steps.
The data is contained in three files:
- portfolio.json - containing offer ids and meta data about each offer (duration, type, etc.)
- profile.json - demographic data for each customer
- transcript.json - records for transactions, offers received, offers viewed, and offers completed
The main findings of the code can be found at the post available here.
Must give credit to Starbucks for the data. Feel free to use the code here as you would like!