This repository contains the Jupyter notebook for Amit Dongardive's Module 05 submission, where we analyze the acceptance rates of different types of coupons based on various demographic and behavioral factors.
The notebook performs the following analyses:
-
Bar Coupons Analysis:
- Create a new DataFrame containing only bar-related coupons.
- Calculate the proportion of bar coupons accepted.
- Compare acceptance rates between those who visit bars 3 or fewer times a month and those who visit more frequently.
- Compare acceptance rates between drivers who go to bars more than once a month and are over the age of 25 to all other drivers.
- Compare acceptance rates for drivers who frequent bars more than once a month, had passengers other than kids, and had occupations other than farming, fishing, or forestry.
-
Coffee House Coupons Analysis:
- Create a new DataFrame containing only coffee house-related coupons.
- Calculate the overall acceptance rate for coffee house coupons.
- Compare acceptance rates based on age groups, marital status, income groups, and occupation.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Python 3.x
- Jupyter Notebook
- Pandas
- Numpy
- Clone the repository:
git clone https://github.com/your-username/Module_05_Notebook.git
- Navigate to the repository directory:
cd Module_05_Notebook
- Install the required packages:
pip install -r requirements.txt
- Start the Jupyter Notebook:
jupyter notebook
- Open the notebook
Amit_Dongardive_Module05_July2024_v01.ipynb
and run the cells to perform the analysis.
- Proportion of Bar Coupons Accepted: Approximately 41%
- Acceptance Rates by Frequency of Bar Visits:
- 3 or fewer visits per month: 37.07%
- More than 3 visits per month: 76.88%
- Acceptance Rates by Age and Frequency:
- Drivers who go to bars more than once a month and are over the age of 25: 69.52%
- All other drivers: 33.50%
- Acceptance Rates by Additional Criteria:
- Drivers who go to bars more than once a month, had passengers other than kids, and had occupations other than farming, fishing, or forestry: [insert percentage]
Refer the PDF Version the Notebook.pdf
file for more details on the code, plots and analysis.
None
None