Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.55 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.55 KB

city-clearance-rate

Installation

Clone the repository

$ https://github.com/open-data-kazakhstan/city-clearance-rate.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 qamqor.gov.kz stats: https://qamqor.gov.kz/crimestat/statistics

We downoladed data from this source and placed it in the data folders

We have processed the source data to make it normalized and derived several aggregated datasets from it:

  • data/output.csv - final combined data
  • data/clearance-rate-divided - Data with defined clearance rate
  • datapackage.json - conatins all of the key information about our dataset

Description

Main output data in file 'clearance-rate-divided' where column clearance-rate means amount of crime investigated and also column clearance-rate-divided is calculated by dividing the number of crimes that are "cleared" (a charge being laid) by the total number of crimes recorded

Scripts

  • scripts/script.py - our main script
  • datapack.py - creating datapckage.json file that conatinsall meatadata

License

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