Clone the repository
$ git clone https://github.com/open-data-kazakhstan/inflation-and-avg-salary-with-projections.git
Requires Python 3.11.3
Create a virtual environment and activate it
pip install venv
python -m venv /path/to/localrepo
Swicth to venv directory by using cd comand
cd /path/to/localrepo
Scripts/activate
Install dependecies in venv by using pip
pip install -r requirements.txt
Run the project:
python scripts/main.py
Salary data collected by hand from stat.gov stats: https://stat.gov.kz/
Inflation data taken from the World Bank for 2007 to 2021: https://data.worldbank.org/indicator/FP.CPI.TOTL.ZG?locations=KZ
Additional inflation rates for 2022 and 2023 taken from Statista: https://www.statista.com/statistics/436183/inflation-rate-in-kazakhstan/
We downoladed data from these sources and placed it in the acrhive folder as csv_warnged.csv.
We have processed the source data to make it normalized and derived several aggregated datasets from it:
archive/csv_wranged.csv
- sourсe data for salariesdata/prediction.csv
- wranged and preprocessed datadata/csv_expanded.csv
- expanded main dataset which predicts populations from 2023 to 2050datapackage.json
- conatins all of the key information about our dataset
wrang.py
- cleaning and wranging the source data scriptexpand.py
- uses main dataset and expands it to 8 steps to make animation smootheranimate.py
- uses matplotlib to create an infographic about populations over the inflation and exports it to a gif filedatapack.py
- creating datapckage.json file that conatinsall meatadatamain.py
- launches all scripts step by step
Final result is visualized data that displays average salary and inflation data
This dataset is licensed under the Open Data Commons Public Domain and Dedication License.