Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

leulged/tanzania-tourism-prediction-zindi

Domain:

socioeconomic

Record type:

dataset
Creator:
leu
Host:
# 🌍 Tanzania Tourism Prediction - Zindi Challenge This project focuses on analyzing and preparing the Tanzania Tourism dataset provided by Zindi. The goal is to perform exploratory data analysis, feature engineering, data cleaning, and manual encoding to make the dataset ready for modeling tourism trends. --- ## 📁 Project Structure - `Tanzania_Tourism_Prediction.ipynb`: The main notebook containing all analysis and code. - `train_set.csv`: Training dataset used for EDA and feature engineering. - `README.md`: Project documentation. --- ## ✅ Objectives - Explore and clean the data - Engineer meaningful features - Aggregate and filter insights - Encode categorical variables for modeling --- ## 🔧 Tools & Libraries Used - Python - Pandas - NumPy --- ## 📊 Tasks Completed ### 1. Data Exploration - Counted missing values in each column - Identified the number of unique values for each categorical column ### 2. Descriptive Statistics - Calculated average `total_cost` by `purpose` - Calculated average `night_mainland` and `night_zanzibar` by `country` ### 3. Data Filtering - Filtered trips with `purpose = Leisure and Holidays` and `total_cost >= 5000` - Found first-time travelers whose main activity was `Wildlife tourism` ### 4. Feature Engineering - Created a new column `total_people = total_female + total_male` ### 5. Aggregation & Grouping - Created `total_nights = night_mainland + night_zanzibar` - Grouped by `age_group` and calculated mean `total_cost` and `total_nights` - Counted values of `travel_with` ### 6. Advanced Filtering & Sorting - Extracted top 10 most expensive trips and their `main_activity` --- ## 🔁 Bonus Tasks ### 7. Data Cleaning - Replaced `0` values in `total_people` with `NaN` - Recalculated `cost_per_person` - Normalized `total_cost` using Min-Max normalization ### 8. Encoding for Modeling - Factorized `payment_mode` and `travel_with` into numeric codes - Created binary `has_package` flag based on package-related columns ---

Visit

github.com

Languages

Swahili, Coastal

Similar

Bensylent/Zindi-Tanzania-Tourism-PredictionKuriaDan/Zindi-Kenya-Hack-Tanzania-Tourism-Prediction-ChallengeGladne/Tourism-price-prediction---ZindiPaul-mwaura/Tanzania-Tourism-Hackathon-ZindiTanzania Tourism Predictionfreddyjaoko/Tanzania-Tourism-Prediction

Bensylent/Zindi-Tanzania-Tourism-Prediction

https://zindi.africa/competitions/tanzania-tourism-prediction # Zindi-Tanzania-Tourism-Prediction G

KuriaDan/Zindi-Kenya-Hack-Tanzania-Tourism-Prediction-Challenge

Position 1 solution # Zindi Kenya Hack Tanzania Tourism Prediction Challenge Position 1 solution

Gladne/Tourism-price-prediction---Zindi

Tourism Price Prediction – Zindi is a machine learning project that predicts tourist expenditure in

Paul-mwaura/Tanzania-Tourism-Hackathon-Zindi

# Tanzania-Tourism-Hackathon-Zindi ## Problem Statement The Tanzanian tourism sector plays a signif

Tanzania Tourism Prediction

Can you use tourism survey data and ML to predict how much money a tourist will spend when visiting Tanzania?
The dataset describes 6476 rows of up-to-date information on tourist expenditure collected by the National Bureau of Statistics (NBS) in Tanzania.T

freddyjaoko/Tanzania-Tourism-Prediction

Developing a machine learning model to predict what a tourist will spend when visiting Tanzania. #