Skip to content

Repository files navigation

Global Climate Warming Analysis with Berkeley Earth Temperature Dataset

MIT License Python Libraries Last Commit

Data-driven analysis of 265-year global surface temperature records (1750–2015) from Berkeley Earth, hosted on Kaggle.

Dataset Source

Kaggle Dataset Link: https://www.kaggle.com/datasets/berkeleyearth/climate-change-earth-surface-temperature-data Target File: GlobalTemperatures.csv Data coverage: Monthly global land & combined land-ocean temperature measurements, including max/min land temperature and 95% uncertainty intervals.

Project Goals

  1. Visualize long-term global warming trends from 1850 to 2015
  2. Calculate temperature anomalies using the standard 1951–1980 climate baseline
  3. Compare divergent warming rates of land maximum and minimum temperatures
  4. Explore seasonal warming differences across winter, spring, summer, autumn
  5. Analyze decade-by-decade shifts in monthly temperature anomaly distributions
  6. Quantify correlation between raw temperature values and measurement uncertainty
  7. Build interactive Plotly dashboards for dynamic trend exploration

Environment Dependencies

Install required packages before execution:

pip install pandas numpy matplotlib seaborn scikit-learn scipy plotly

## 📊 Key Visualizations
**Global Land vs Land-Ocean Temperature Trends (1850–2015)**
![Temperature Trends](images/temperature_trends.png)
**Climate Warming Stripes**
![Warming Stripes](images/warming_stripes.png)
**Monthly Temperature Anomaly Distribution by Decade**
![Decadal Boxplot](images/decadal_boxplot.png)
**Global Land Temperature Anomalies (1750–2015)**
!Temperature_Anomaly](images/Temperature_Anomaly.png)

## How to Run
Download and unzip the Kaggle dataset into your project folder
Switch dataset loading code to the local file path (comment/uncomment path block)
Run the notebook or Python script locally

Key Visual Outputs
Global land vs land-ocean temperature trend line chart
Annual temperature curve with 10-year rolling mean & 95% uncertainty shade band
5-year rolling max/min land temperature comparison
Climate warming stripes (temperature anomaly horizontal heatmap)
Boxplot of monthly temperature anomalies grouped by decade
Seasonal warming trend multi-line plot
Correlation heatmap for temperature and measurement uncertainty
Static scatter plot of historical temperature anomalies
Two interactive Plotly time-series dashboards

Data Preprocessing Steps
Datetime parsing & year/month feature extraction
Linear interpolation to fill missing temperature records
Filter reliable post-1850 instrumental temperature data
Annual/monthly temperature aggregation
Temperature anomaly calculation (remove seasonal bias with 1951–1980 baseline)
Z-score extreme temperature detection
Min-Max normalization for standardized temperature values
Decade categorical feature creation for grouped analysis

License
Dataset: CC BY-NC-SA 4.0 (Berkeley Earth)
Project Code: MIT License

About

Data-driven replication of global warming trends (1750–2015) using Berkeley Earth surface temperature records. Quantifies land-ocean warming differentials, seasonal divergence, and decadal anomaly shifts with statistical rigor.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages