The goal: predict the price, in TND, of a car listing (used or new) from its features.
Pipeline
- Data collection: scrapers for several Tunisian listing sites (automobile.tn, Baniola, SparkAuto and more).
- Cleaning and merging: normalize prices, mileage and year, turn free text into fields, then merge the sources into one dataset.
- Exploratory analysis: distributions, correlations and outliers, including listings with wrong or missing prices.
- Feature engineering: car age,
log(price), groupings and interactions. - Modeling: linear and tree baselines, then stronger ensemble models.
- Evaluation: MAE, RMSE and R² with cross-validation.
- Delivery: a small prediction web app.
Data quality
Scraped listings are messy. Two of the problems the cleaning step had to handle:

