# 📊 Exploratory Data Analysis (EDA) – E-Commerce Customer Behavior Dataset
This project performs a full Exploratory Data Analysis (EDA) on an e-commerce customer behavior dataset.
The goal is to explore patterns, detect anomalies, generate insights, and answer research questions using visualizations.
---
# ## 1. 📦 Dataset Loading
```python
import pandas as pd
df = pd.read_csv("ecommerce_customer_behavior_dataset.csv")
df.head()
````
# ## 2. 🧹 Data Cleaning
df.isnull().sum()
df.duplicated().sum()
df['Date'] = pd.to_datetime(df['Date'], errors='coerce')
df.describe()
df['Age'].describe()
df['Session_Duration_Minutes'].describe()
df['Delivery_Time_Days'].describe()
df = df[df['Age'] > 0]
df = df[df['Session_Duration_Minutes'] >= 0]
df = df[df['Delivery_Time_Days'] >= 0]
df = df.drop_duplicates()
### ✔️ Summary of Cleaning Steps
I performed several data cleaning steps to ensure the dataset is consistent and ready for analysis:
1. **Missing Values**
Checked with `df.isn…
Part 2: Exploratory Data Analysis (EDA)
Use your EDA to tell the story of your data - highlight interesting patterns, anomalies, or relationships that lead you toward your classification goal. Ask interesting questions, and answer them.
Data Cleaning : Check for missing values, duplicate entries, scaling/normalize issues, parsing dates, fixing typos, or any inconsistencies. Document how you address them.
Outlier Detection & Handling: Identify outliers and decide whether to keep or remove them, providing a short justification.
Descriptive Statistics: Summarize the data (e.g., mean, median, correlations) to reveal patterns.
Read further on A Comprehensive Guide to Mastering Exploratory Data Analysis.
Visualizations: Use a set of plots (e.g., histograms, scatter plots, box plots) to illustrate key insights. Label charts, axes, and legends clearly.
import pandas as pd
df = pd.read_csv("ecommerce_customer_behavior_dataset.csv")
df.head()
# **Data Cleaning Summary**
df.isnull().sum()
d…
Part 2: Exploratory Data Analysis (EDA)
Use your EDA to tell the story of your data - highlight interesting patterns, anomalies, or relationships that lead you toward your classification goal. Ask interesting questions, and answer them.
Data Cleaning : Check for missing values, duplicate entries, scaling/normalize issues, parsing dates, fixing typos, or any inconsistencies. Document how you address them.
Outlier Detection & Handling: Identify outliers and decide whether to keep or remove them, providing a short justification.
Descriptive Statistics: Summarize the data (e.g., mean, median, correlations) to reveal patterns.
Read further on A Comprehensive Guide to Mastering Exploratory Data Analysis.
Visualizations: Use a set of plots (e.g., histograms, scatter plots, box plots) to illustrate key insights. Label charts, axes, and legends clearly.
Tip: not necessarily in this order.
# **Data Cleaning Summary**
df.isnull().sum()
df.duplicated().sum()
df['Date'] = pd.to_datetime(df['Da…