Skip to content

ouslan/IDH-index

Repository files navigation

IndexIDH - Human Development Index Calculation

This Python script calculates the Human Development Index (HDI) for Puerto Rico using health, income, and education indices. The HDI is a summary measure of a nation's average achievements in three basic dimensions of human development: health, education, and income.

Prerequisites

Before running the script, make sure you create the virtual enviroment and activate it:

git clone https://github.com/ouslan/IDH-index.git
cd IDH-index

With Conda

I have prorvided a environment.yml file to create a new conda environment with the required libraries. To create the environment, run:

conda env create -f environment.yml

With pip

As well as the conda environment, you can install the required libraries with pip:

pip install -r requirements.txt

Important

This project uses pola.rs as une of its dependencies. This libary requires Rust to be installed on your system. You can install Rust from the official Rust website

Usage

To run the replication package, run the following command:

python main.py

This command will generate the data/processed/index_idh.csv file.

Docker

You can also run the website localy using Docker. To do so, run the following command:

docker-compose up --build

This will host a dash application on http://localhost:7050. As well as the documentation on http://localhost:8005.

Sponsors

RUM UPRM Seal Economia Logo