Skip to content

Analysis of global primary energy consumption trends for various countries.

License

Notifications You must be signed in to change notification settings

Sydney205/Primary-energy-consumption

Repository files navigation

Energy Consumption Analysis

This project analyzes global primary energy consumption trends for various countries and regions. It includes data processing, visualization, statistical analysis, and machine learning to make predictions about future energy consumption.

Table of Contents

Project Overview

This project focuses on exploring and analyzing global energy consumption data using Python. Key insights include:

Data Description

The dataset contains the following key columns:

  • Entity: Country, region, or continent.
  • Code: ISO 3-letter country code.
  • Year: The year of the data entry.
  • Primary energy consumption (TWh): The primary energy consumption measured in terawatt-hours.

Installation

  1. Clone this repository:
    git clone https:///~https://github.com/Sydney205/Primary-energy-consumption.git
  2. Navigate to the project directory:
    cd energy-consumption-analysis

Visualizations

Country Energy Consumption Plot

  • Bar plot displaying total primary energy consumption by country.
  • Country Energy Consumption

China vs United States Energy Consumption

  • A line plot comparing energy consumption trends between China and the United States from 1965 onwards.
  • us vs china

Year-on-Year Growth in China

  • A line plot showing the year-on-year growth percentage in primary energy consumption for China.
  • Year-on-Year Growth in China

Linear Regression Predictions

  • Scatter plot showing the actual vs predicted values for energy consumption in the United States.
  • Predictions for future energy consumption until 2050 using a linear regression model.
  • Linear Regression Predictions

Dependencies

  • Python 3.x
  • pandas
  • matplotlib
  • scikit-learn

To install the dependencies, run:

pip install pandas matplotlib scikit-learn

License

This project is licensed under the APACHE License - see the LICENSE file for details.

Acknowledgements

Download dataset

About

Analysis of global primary energy consumption trends for various countries.

Topics

Resources

License

Stars

Watchers

Forks