This project focuses on cleaning, preparing, and optimizing a raw product dataset to ensure data quality for marketing analytics. The primary goal was to enhance the dataset's structure, handle inconsistencies, remove noise, and engineer new features for better SEO and product visibility.
- Total Entries: 3,847
- Final Cleaned Entries: 3,541
- Key Features:
product_id: Unique product identifiertitle: Original product titlebullet_points: Product features (often incomplete)description: Detailed product descriptionproducttype_id: Categorical identifier for product typeProduct_Length: Numeric field (length in meters, assumed)
- 🗑 Remove Duplicates: Ensure unique entries using
product_id - ❓ Handle Missing Values: Fill gaps in descriptions and bullet points
- 🔧 Standardize Formats: Normalize column names and datatypes
- 🚨 Detect & Treat Outliers: Apply IQR method to rectify extreme
Product_Lengthvalues - 📝 Feature Engineering: Generate a
short_titleto enhance SEO - 📊 Visualize Improvements: Before/after comparisons using histograms and boxplots
- Duplicates Found:
306 - Method:
.duplicated(subset='product_id') - Result: Cleaned dataset has
3,541unique entries
- Columns affected:
bullet_points,description - Strategy: Replaced with empty strings
""
- Renamed columns to snake_case for consistency
- Converted
producttype_idto categorical - Rounded
Product_Lengthto 3 decimal places
- Max Value: 96,000 (extreme)
- Method: IQR-based filtering
- Action: Replaced outliers with median value
- Result: Histogram and boxplot showed improved distribution
Generated a new feature short_title for better readability and SEO using:
- Truncation to 6 words if over 12
- Removing phrases after commas, "for", or "with"
- Filtering special characters
- Removing redundant or low-information words
- ⬇️ Reduced average title length
- 🔤 Clearer, concise product names
- 📈 Improved keyword frequency profile


