STAT 386 project: analysis of FBI Wanted listings using the FBI Wanted API.
Project description
fbi-wanted-analysis
A Python package for retrieving, cleaning, and analyzing data from the FBI Wanted API. This package streamlines FBI dataset exploration into a simple workflow: download → clean → analyze.
Features
- Live retrieval from the official FBI Wanted API
- Automated cleaning of publication dates, field office data, and reward text
- Reward parsing into consistent numeric values (USD)
- Analysis functions for exploring:
- reward trends
- geographic patterns
- crime subject comparisons
- time-series volume patterns
Installation
pip install fbi-wanted-analysis
Quick Start
from fbi_wanted_analysis import fetch_current_wanted, clean_wanted
# Pull current FBI wanted data (up to 200 items per page)
df = fetch_current_wanted(pages=2)
# Clean and parse
cleaned = clean_wanted(df)
print(cleaned.head())
Example: Reward amounts by crime type
from fbi_wanted_analysis import fetch_current_wanted, clean_wanted
from fbi_wanted_analysis.analysis import reward_by_crime_type
df = clean_wanted(fetch_current_wanted(pages=4))
summary = reward_by_crime_type(df)
print(summary.head())
Run the Streamlit App
To launch the interactive visualization dashboard:
streamlit run src/fbi_wanted_analysis/streamlit_app.py
This dashboard provides:
- Volume over time
- Reward intensity trends
- Subject‑level reward patterns
- Field office comparisons
Project Purpose
This package supports statistical exploration, reproducible reporting, and real-world data analysis. It is also used in a Streamlit dashboard that visualizes reward intensity, volume patterns over time, crime subject distribution, and field-office concentration.
Contents
Main modules:
analysis.py— analytical methods for research questionscleaning.py— parses and normalizes raw FBI datarewards.py— extracts numeric dollar values from reward text
The package exposes:
from fbi_wanted_analysis import fetch_current_wanted, clean_wanted
Requirements
Python 3.11+
Dependencies:
- pandas
- numpy
- streamlit
- requests
Authors
Created by Dallin Robinson and Michael Stutzman
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fbi_wanted_analysis-0.2.0.tar.gz.
File metadata
- Download URL: fbi_wanted_analysis-0.2.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
015172f70b84f1e81abd84acdd4329e4e92aced631414ee748504e7fd75903e9
|
|
| MD5 |
ef4e3bc75a94eca781dba91ca0b52563
|
|
| BLAKE2b-256 |
8c1ab61427afe0f0fe6e38d2901d768c32632088da9e36dad892d2d33f6cc430
|
File details
Details for the file fbi_wanted_analysis-0.2.0-py3-none-any.whl.
File metadata
- Download URL: fbi_wanted_analysis-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23516069b016e5f0fb09f55370a35fc0355ad542d738cd509f7c43e2bffccc1f
|
|
| MD5 |
09409e8835a6abc6b6ae3a4d9bc9e0e2
|
|
| BLAKE2b-256 |
ed559068737fa1525030ea29862ebc9372afc455a07134e1b4c4d7cf507c3493
|