open-data-kazakhstan / inflation-and-avg-salary-with-projections

Inflation and average salary in Kazakhstan by years from 2007 to 2023 taken from Statgov and World Bank

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inflation and average salary rate from 2007 to 2023

Installation

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

Data

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 salaries
  • data/prediction.csv - wranged and preprocessed data
  • data/csv_expanded.csv - expanded main dataset which predicts populations from 2023 to 2050
  • datapackage.json - conatins all of the key information about our dataset

Scripts

  • wrang.py- cleaning and wranging the source data script
  • expand.py - uses main dataset and expands it to 8 steps to make animation smoother
  • animate.py - uses matplotlib to create an infographic about populations over the inflation and exports it to a gif file
  • datapack.py - creating datapckage.json file that conatinsall meatadata
  • main.py - launches all scripts step by step

Visualization

Final result is visualized data that displays average salary and inflation data

inflation

License

This dataset is licensed under the Open Data Commons Public Domain and Dedication License.

About

Inflation and average salary in Kazakhstan by years from 2007 to 2023 taken from Statgov and World Bank


Languages

Language:Python 100.0%