Skip to content

open-data-kazakhstan/city-clearance-rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Clearance rate (percentage of crimes solved)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages