Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Climate change analysis illustration: scientist reviewing temperature, CO2, and environmental data

Climate Change Data Analysis

This project analyzes global climate change indicators using open datasets. It explores trends in global temperature anomalies, CO2 emissions, and sea level rise, and examines the relationships between these variables.

Features

  • Automated data download for global temperature, CO2 emissions, and sea level rise
  • Data preprocessing for each dataset
  • Visualizations:
    • Global temperature anomaly trends
    • Global CO2 emissions trends
    • Global sea level rise
    • Correlation matrix between indicators
    • Combined trends plot
  • Detailed analysis in markdown cells within the Jupyter Notebook

Datasets Used

How to Install Jupyter Notebook

If you don't have Jupyter installed, you can install it with pip:

pip install jupyter

Or, if you want the full JupyterLab experience:

pip install jupyterlab

After installation, you can launch the notebook with:

jupyter notebook

or

jupyter lab

How to Use

  1. Install dependencies (recommended: use a virtual environment):
    pip install -r requirements.txt
    # or manually:
    pip install pandas matplotlib seaborn requests numpy jupyter
  2. Launch Jupyter Notebook:
    jupyter notebook
  3. Open climate_analysis.ipynb in your browser.
  4. Run all cells (Shift+Enter) to download data, preprocess, and generate all visualizations and analysis.

Notebook Structure

  • Data Download: Automatically downloads the latest datasets.
  • Preprocessing: Cleans and structures the data for analysis.
  • Visualization & Analysis: Each section includes a plot and a markdown cell with interpretation and insights.

Visualizations Included

  • Global Temperature Trends: Line plot of temperature anomaly over time.
  • CO2 Emissions Trends: Line plot with 5-year moving average.
  • Sea Level Rise: Scatter plot with trend line.
  • Correlation Matrix: Heatmap showing relationships between indicators.
  • Combined Trends: All three indicators on a shared timeline.

Requirements

  • Python 3.7+
  • pandas
  • matplotlib
  • seaborn
  • requests
  • numpy
  • jupyter

License

This project is for educational and research purposes. Data sources are credited to their respective organizations.

About

This project was created as the final project for the Code in Place program, organized by Stanford University. The Code in Place program is an introductory programming course designed and taught by Stanford professors and volunteers, focusing on Python programming and computer science fundamentals.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages