Skip to content

jithendra945/mountblue-dataproject-python

Repository files navigation

UN Data project using python

This repository will collect data in csv format and process it to display bar plots using matplotlib.

1. Set up virtual environment

Step 1 : Install virtual environment

NOTE : Should have pip installed

pip install virtualenv

Step 2 : Create the virtual environment

virtualenv venv

Step 3 : Activate the virtual environment

source venv/bin/activate

Once it is activated, it will show (venv) before the username as shown below :

(venv) username project
$ 

Step 4 : To deactivate virtual environment

deactivate

2. Clone repository

copy the link of ssh clone from the repository and run command as follows :

git clone [email protected]:mountblue/cohort-16-python/arkadu_kumar/dataproject-python.git

After succesfully cloning the repository, change directory to dataproject-python by following command

cd dataproject-python

3. Install Dependencies

To install all the dependencies or requirements, run the command :

pip install -r requirements.txt

NOTE : Make sure to have virtual environment activated so it installs in the virtual environment.

4. Download required csv file

Download the csv file from the link https://datahub.io/core/population-growth-estimates-and-projections/r/population-estimates.csv and paste it in the directory datasets with the name population_estimates_csv.csv

datasets/population_estimates_csv.csv

5. Run the Files

For the first question, To run the file, simply type in the command :

python3 indian_population.py

This will open matplotlib bar plot in a pop up window as shown below. indian_population Similarly, For the second question, To run the file, simply type in the command :

python3 asean_population.py

This will open matplotlib bar plot in a pop up window as shown below. asean_population

For the third question, To run the file, simply type in the command :

python3 total_saarc_population.py

This will open matplotlib bar plot in a pop up window as shown below. total_saarc_population

For the fourth question, To run the file, simply type in the command :

python3 total_asean_population.py

This will open matplotlib grouped bar plot in a pop up window as shown below. total_asean_population

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages