Skip to content

shabi340/Email-Personalization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personalizing Email for efficient advertisement in the field of marketing

Overview

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.

Visualization

Trend Graph

Dataset Used

The dataset used in this project was obtained from Kaggle:

Project Structure

  • 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.

Tools and Libraries Used

  • Python
  • pandas (for data manipulation)
  • matplotlib (for data visualization)
  • seaborn (for statistical data visualization)
  • random (for randomization)
  • datetime (for date handling)

How to Run the Project

  • 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

Brief Explanation of Each Code Section

  1. Load and Preprocess Datasets: item_list.csv and shopping_trends.csv are loaded and processed using the pandas library.
  2. Convert Season and Frequency: Seasonal and frequency data are mapped to numeric values for easier analysis.
  3. Apply Filters for Eligible Customers: Two sets of filters are applied to select eligible customers based on specific criteria.
  4. Determine Current Season: The current month is obtained, and based on it, the current season is determined (Spring, Summer, Fall, Winter).
  5. 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.
  6. Save Email Content Data: The generated email content data is stored in a structured format (CSV) for future use in marketing campaigns.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors