This project analyzes the Black Friday Sales Dataset from Kaggle, which contains transactional and demographic data of customers.
The main objectives are:
- Understand customer purchasing behavior
- Perform Exploratory Data Analysis (EDA)
- Engineer features for modeling
- Build predictive models to estimate purchase amounts
The dataset is widely used for EDA, Feature Engineering, and Machine Learning practice.
The dataset consists of two files:
- train.csv → Contains ~550,000 rows with purchase amounts (target variable).
- test.csv → Similar to train but without the target variable (Purchase).
| Column Name | Description |
|---|---|
| User_ID | Unique identifier for each customer |
| Product_ID | Unique identifier for each product |
| Gender | Gender of the customer (Male/Female) |
| Age | Age group of the customer |
| Occupation | Occupation code (categorical) |
| City_Category | City tier (A, B, C) |
| Stay_In_Current_City_Years | Number of years customer has stayed in current city |
| Marital_Status | 0 = Unmarried, 1 = Married |
| Product_Category_1 | Primary product category |
| Product_Category_2 | Secondary product category (may have missing values) |
| Product_Category_3 | Tertiary product category (may have missing values) |
| Purchase (train only) | Purchase amount (target variable) |
-
Exploratory Data Analysis (EDA)
- Understand customer demographics
- Analyze purchase behavior by gender, age, city, and product categories
-
Feature Engineering
- Handle missing values
- Encode categorical variables
- Create meaningful new features
-
Predictive Modeling
- Predict purchase amount for customers in the test dataset
-
Visual Insights
- Trends in purchase behavior
- Comparison across genders, age groups, and product categories
- Python
- Pandas, NumPy → Data manipulation
- Matplotlib, Seaborn → Data visualization
- Scikit-learn → Machine learning models
- Average purchase by Gender & Age group
- Purchase trends across Product Categories
- Impact of City_Category and Stay_In_Current_City_Years on sales
- Feature importance for purchase prediction
- Insights into customer purchase behavior
- Cleaned dataset ready for modeling
- Predictive model to estimate Purchase Amount for test data