This project analyzes global energy consumption trends from 1965 to 2023 using a comprehensive dataset from Kaggle. It explores energy consumption patterns across various countries and regions over time.
Energy consumption is a key indicator of economic and societal progress. This project investigates the changes in energy consumption across different countries and regions over nearly six decades.
The dataset used is sourced from Kaggle and includes energy consumption data for countries and regions from 1965 to 2023. The data is available in CSV format and includes various columns for energy consumption metrics.
To set up and run the analysis, follow these steps:
-
Clone the repository:
git clone https://github.com/asghar-rizvi/World-Energy-Consumption-Analysis-1965-2023.git
-
Navigate to the project directory:
cd World-Energy-Consumption-Analysis-1965-2023
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
The analysis is conducted in the Jupyter Notebook World_Energy_Consumption_Analysis.ipynb
. This notebook includes:
- Data Cleaning and Preparation
- Descriptive Statistics
- Exploratory Data Analysis
- Growth Rate Calculation
- Trend Analysis
The notebook contains various visualizations, including:
- Bar Plots: Show top countries by energy consumption in 2023.
- Line Plots: Illustrate trends over time.
- Scatter Plots: Depict growth rates and other metrics.
Key findings from the analysis include:
- The top countries by energy consumption in 2023.
- Growth rates of energy consumption over the years.
- Trends in energy consumption by region and country.
This project provides valuable insights into global energy consumption trends and highlights disparities between different regions and countries. It serves as a resource for understanding historical and current energy usage patterns.
This project is licensed under the MIT License. See the LICENSE file for details.