Utilities for analyzing Illinois Traffic Stop Study data.
Project description
itssutils
Illinois Traffic Stops Statistical Study Utilities
This package provides a way to calculate metrics for police traffic stops in Illinois. Built for use with data provided from the Illinois Traffic Stop Study.
Check out the Illinois traffic stops website to learn more.
Installation
You can install with pip
:
pip install itssutils
Usage
Download raw data from this link (you can download pre-processed metrics files there as well).
Process the raw data using the RawITSSData
class.
from itssutils.itssdata import RawITSSData
raw = RawITSSData()
raw.load_single_year(2017, '2017_ITSS_Data.txt')
You can calculate metrics using the ITSSMetrics
class.
from itssutils.itssdata import ITSSMetrics
met = ITSSMetrics(raw)
met.calculate_metics(['AgencyName', 'DriverRace'])
Getting Started
Try opening up the getting started notebook and working your way through it to see what the package can do. Be sure to note any issues!
Look for more documentationon the GitHub Pages site.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for itssutils-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | defb4831fea6230f7f7de89bc6a4d7b5f75e17630df00c298b39a8b6de11f55b |
|
MD5 | 02e6daeb9a4ee42a271d7415b9287507 |
|
BLAKE2b-256 | 9dea7bc0c4e28e1e862451892053cdc83e94233a748eb2bac8ceb4ea7e45669e |