The "Personalizing Email for efficient advertisement in the field of marketing" project aims to target specific customers with tailored email offers based on their shopping behavior and preferences. The project utilizes Python programming language and various data processing libraries to achieve this.
The dataset used in this project was obtained from Kaggle:
- Dataset Source: Consumer Behavior and Shopping Habits Dataset
- Original Creator: ZEE SOLVER
- input/: This directory contains the datasets used.
- shopping_trends.csv: This file contains sample data representing customer preferences and trends.
- item_list.csv: This dataset provides information about items, including their corresponding categories and seasons.
- notebook/: This directory contains the Jupyter notebook for the project.
- Personalizing Emails.ipynb: This notebook encompasses the entire codebase for the project.
- output/: This directory contains the generated outputs.
- email_content1.csv: This file contains the output for customers who shop on a fortnightly or monthly basis.
- email_content2.csv: This file contains the output for customers who shop on a bi-weekly or weekly basis.
- README.md: This is the main documentation file providing an overview of the project and its structure.
- Python
- pandas (for data manipulation)
- matplotlib (for data visualization)
- seaborn (for statistical data visualization)
- random (for randomization)
- datetime (for date handling)
- Clone the Repository: git clone https://github.com/your-username/Personalized-Marketing-Campaign.git
- Navigate to the Project Directory: cd Personalized-Marketing-Campaign
- Install Dependencies: Ensure you have Python installed. Then, install the required libraries:
-
- pip install pandas
- pip install matplotlib
- pip install seaborn
- Execute the main Python script: python main.py
- Load and Preprocess Datasets: item_list.csv and shopping_trends.csv are loaded and processed using the pandas library.
- Convert Season and Frequency: Seasonal and frequency data are mapped to numeric values for easier analysis.
- Apply Filters for Eligible Customers: Two sets of filters are applied to select eligible customers based on specific criteria.
- Determine Current Season: The current month is obtained, and based on it, the current season is determined (Spring, Summer, Fall, Winter).
- Generate Personalized Email Content: Personalized email content is generated for eligible customers. This includes salutation, body text, and closing, all customized with the customer's name and a randomly recommended product.
- Save Email Content Data: The generated email content data is stored in a structured format (CSV) for future use in marketing campaigns.
