Zerotopandas Course Project Energy Statistics
The Energy of Spain: A data analysis from the International Energy Statistics (UN)
This project aims to analyze energy production and consumption in Spain. The data has been taken from an open-source dataset. The dataset is called "International Energy Statistics", and data has been collected by United Nations Organisation. The database contains comprehensive energy statistics on the production, trade, conversion and final consumption of primary and secondary; conventional and non-conventional; and new and renewable sources of energy.
Throughout this project, we are:
- Downloading and importing the dataset
- Cleaning data, and taking energy data about energy production and consumption in Spain
- Exploring the energy production and consumption in Spain, employing data visualization (pie charts, line charts, bar charts, and heatmaps)
Downloading the Dataset
First of all, we must download the dataset from Kaggle.
Let's begin by downloading the data, and listing the files within the dataset.
dataset_url = 'https://www.kaggle.com/unitednations/international-energy-statistics?select=all_energy_statistics.csv'
import opendatasets as od od.download(dataset_url)