Skip to main content

A curated collection of crime-related datasets for data analysis, criminology research, and education. Includes international crime statistics, incarceration data, mass shootings, hate crimes, and more from Kaggle sources.

Project description

crimedatasets

License: MIT Python 3.8+

The crimedatasets package provides a curated collection of crime-related datasets from around the world, designed for data analysis, criminology research, and education in Python.

It includes extensive data on mass shootings, hate crimes, incarceration statistics, serial killers, corruption indexes, and criminal justice metrics spanning multiple countries including the United States, Germany, Russia, Spain, France, Sweden, Switzerland, and Scotland.

Installation

You can install the crimedatasets package from PyPI:

pip install crimedatasets

Usage

import crimedatasets as crd

# List all available datasets

datasets = crd.list_datasets()
print(datasets)

# Load a specific dataset

df = crd.load_dataset('us_mass_shootings')
print(df.head())

📊 Some Available Datasets

Related-Crimes Datasets

Dataset Description Period
berlin_crimes Crime in Berlin, Germany 2012 - 2019
texas_deathrow Texas death row inmates 1976 - 2018
russia_crimes The number of crimes in Russia 2008-2023
arrests_national_juvenile Arrests of juveniles in the US by crime category 1995-2016

The crimedatasets library is released under the MIT License, allowing free use for both commercial and non-commercial purposes.

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

crimedatasets-0.1.0.tar.gz (777.3 kB view details)

Uploaded Source

Built Distribution

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

crimedatasets-0.1.0-py3-none-any.whl (777.4 kB view details)

Uploaded Python 3

File details

Details for the file crimedatasets-0.1.0.tar.gz.

File metadata

  • Download URL: crimedatasets-0.1.0.tar.gz
  • Upload date:
  • Size: 777.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for crimedatasets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ac7109972fdfaf4a35684a0ce4fe2ebbd9fc8aac3e4bb333f0d6e308d5b9125
MD5 bb146e2555bf56718cfe5789c4244552
BLAKE2b-256 7337f8f9d0b23327cbb3d8d924c6a0febe0fbce05ae50084975a8bcca69fd62b

See more details on using hashes here.

File details

Details for the file crimedatasets-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: crimedatasets-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 777.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for crimedatasets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58c66c0adb22a69c1d3be862c63ac4d6bdd9b9ed93383a360cfcdc2aae5e1849
MD5 239876725bbb29103593e4b9456a8f60
BLAKE2b-256 219d5cbc7db7cc104e7939b9fe97a67637d01b0c28e1fe695d049bd96d81f31d

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