# πΎ Zambia Agricultural Insights
A data analysis project exploring crop yields, rainfall patterns, and market prices across Zambia's 10 provinces (2018β2024). Built to surface actionable insights for smallholder farmers and agri-businesses β and to complement the Tulime farmer platform.
---
## π Key Findings
| Finding | Detail |
|---|---|
| Best maize province | **Eastern Province** β consistently 30% above national average |
| National avg maize yield | **2.33 t/ha** (up ~17% from 2018 to 2024) |
| Highest rainfall | **Luapula Province** (~1,400mm/year) |
| Price seasonality | Maize prices peak in **OctoberβNovember** (lean season) |
| El NiΓ±o impact | Visible yield drops in 2019 and 2023 across Southern & Western |
---
## π Project Structure
```
zambia-agri-insights/
βββ src/
β βββ analysis.py # Main analysis script
βββ charts/ # Generated visualizations
β βββ 01_maize_yield_trend.png
β βββ 02_crop_yield_comparison.png
β βββ 03_rainfall_heatmap.png
β βββ 04_maize_price_seasonality.png
β βββ 05_production_by_province.png
βββ data/ # (Add raw CSVs here if available)
βββ README.md
```
---
## π Visualizations
### 1. Maize Yield Trend β Top 5 Provinces
Tracks how maize productivity has improved over 7 years, province by province.
### 2. Crop Yield Comparison
Side-by-side average yield for Maize, Soybean, Groundnuts, Sorghum, and Cassava.
### 3. Rainfall Heatmap
Annual rainfall (mm) across all provinces β highlights drought-risk years at a glance.
### 4. Maize Price Seasonality
Average monthly market price for maize, showing the harvest-to-lean-season price swing.
### 5. Production by Province
Total agricultural output volume β identifies the country's most productive regions.
---
## π οΈ Tech Stack
- **Python 3.11**
- **pandas** β data wrangling and aggregation
- **matplotlib** β charting and visualization
- **seaborn** β heatmaps and statistical plots
- **numpy** β numerical operations and data simulation β¦