Skip to main content

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 questions
  • cleaning.py — parses and normalizes raw FBI data
  • rewards.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fbi_wanted_analysis-0.2.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fbi_wanted_analysis-0.2.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for fbi_wanted_analysis-0.2.0.tar.gz
Algorithm Hash digest
SHA256 015172f70b84f1e81abd84acdd4329e4e92aced631414ee748504e7fd75903e9
MD5 ef4e3bc75a94eca781dba91ca0b52563
BLAKE2b-256 8c1ab61427afe0f0fe6e38d2901d768c32632088da9e36dad892d2d33f6cc430

See more details on using hashes here.

File details

Details for the file fbi_wanted_analysis-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fbi_wanted_analysis-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23516069b016e5f0fb09f55370a35fc0355ad542d738cd509f7c43e2bffccc1f
MD5 09409e8835a6abc6b6ae3a4d9bc9e0e2
BLAKE2b-256 ed559068737fa1525030ea29862ebc9372afc455a07134e1b4c4d7cf507c3493

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page