Analysis of temperature trends across five African countries (1980-2023) using Python
# Climate Change in Africa: Temperature Analysis (1980-2023)
A comprehensive analysis of temperature trends across four African countries, exploring climate warming patterns through statistical analysis and data visualization.
---
## Table of Contents
- Project Overview
- Dataset
- Key Findings
- Technical Approach
- Data Quality & Cleaning
- Visualizations
- Technologies Used
- What I Learned
- How to Run
---
## Project Overview
This project analyzes temperature data from five African countries spanning 43 years (1980-2023) to identify climate change trends and patterns. The analysis focuses on:
- **Temperature trends over time** across different countries
- **Seasonal patterns** and geographic variations
- **Distribution changes** between historical (1980-2000) and recent (2000-2023) periods
- **Evidence of climate warming** through statistical analysis
**Countries Analyzed:** Tunisia, Cameroon, Egypt, Senegal
---
## Dataset
**Source:** Climate Data (1980-2023)
- **Original Countries:** 5 (Tunisia, Cameroon, Egypt, Senegal, Angola)
- **Final Dataset:** 4 countries (Angola excluded due to data quality issues)
- **Total Records:** 453,308 daily temperature measurements
- **Variables:**
- `DATE`: Daily timestamp
- `TAVG`: Average temperature (°F)
- `TMAX`: Maximum temperature (°F)
- `TMIN`: Minimum temperature (°F)
- `COUNTRY`: Country name
---
## Key Findings
### 1. **Geographic Climate Differences**
- **Cameroon** (Tropical/Equatorial): Consistently high temperatures (85-100°F) with minimal seasonal variation (~10-15°F range)
- **Tunisia** (Mediterranean): Dramatic seasonal cycles with 50-55°F swings between winter (~40-45°F) and summer (~90-95°F)
- Temperature overlap is minimal: Tunisia's hottest days barely reach Cameroon's coolest temperatures
### 2. **Climate Warming Evidence in Senegal**
- **Mean temperature increase:** 82.7°F (1980-2000) → 83.2°F (2000-2023)
- **Change:** +0.5°F warming over ~23 years
- **Distribution shift:** Entire …