This repository will collect data in csv format and process it to display bar plots using matplotlib.
NOTE : Should have pip installed
pip install virtualenv
virtualenv venv
source venv/bin/activate
Once it is activated, it will show (venv) before the username as shown below :
(venv) username project
$
deactivate
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
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.
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
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.
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.
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.
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.