Skip to main content

group 10 description

Project description

pycrimeprediction

pycrimeprediction is DSCI 301 Group 10's Python package for loading, analyzing, and saving data related to crime rates

Installation

$ pip install pycrimeprediction

Usage

pycrimeprediction can be used to analyze data related to crime rates.

Below is a usage example of two of our functions:

from pycrimeprediction.read_save_data import read_save_data
from pycrimeprediction.add_if_crime import add_if_crime_feature

input_path = "url-for-data.csv"
output_path = "saved-data-to-file.csv"

#Read data and split into examples and labels
df = read_save_data(input_path, output_path)
X = df.iloc[:, 0:-1]
y = df.iloc[:, -1]

#Print Cross-validation results for the Logistic Regression classifier
print(perform_analysis(X,y))

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

pycrimeprediction was created by Cassandra Zhang, Pragya Singhal, James He, and Ethan Kenny. It is licensed under the terms of the MIT license.

Credits

pycrimeprediction was created with cookiecutter and the py-pkgs-cookiecutter template.

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

pycrimeprediction-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

pycrimeprediction-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycrimeprediction-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Darwin/23.4.0

File hashes

Hashes for pycrimeprediction-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40d03bae4aa753c8974ac7be67b0f7d1cef9705bc8566f9c04866d504c962f14
MD5 a65479a9d4345c88a4e7bcbd64f47922
BLAKE2b-256 2555b4c847d64371c980fe695224ff411dea5c588c72612ddabe2a7a93384c1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycrimeprediction-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbdf753650c92a5d1161b6ab8af61e1bb040e9e48b1284e6b7be6b81c557fa27
MD5 52125ea26347694f89892c90dbd2b5c4
BLAKE2b-256 ed583464b615ce1c36dc2085ed1a3b2607f075619cff0293de213b0b55a01a9e

See more details on using hashes here.

Supported by

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