first commit

This commit is contained in:
Noah Swerhun 2023-10-04 13:01:03 -05:00
commit 0021c6c343
11 changed files with 257693 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
poetry.lock
.ipynb_checkpoints/

12
README.md Normal file
View file

@ -0,0 +1,12 @@
**Chicago Crime Analysis**
Basic analysis of chicago crime in python. Using Chicago Police Department Data.
The goal is to find which areas of the city are the safest, and which are the
most dangerous.
The code in the jupyter notebook produces the below graph:
![Image of the plot](map.png)
Areas in red have higher relative crime than areas in blue.

722
crimes.ipynb Normal file

File diff suppressed because one or more lines are too long

256937
data/crimes.csv Normal file

File diff suppressed because it is too large Load diff

BIN
map.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

View file

@ -0,0 +1 @@
GEOGCS["WGS84(DD)", DATUM["WGS84", SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH]]

19
pyproject.toml Normal file
View file

@ -0,0 +1,19 @@
[tool.poetry]
name = "chicago-crime"
version = "0.1.0"
description = ""
authors = ["Noah Swerhun <noah@noahsw.xyz>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
pandas = "^2.1.0"
jupyter = "^1.0.0"
ipykernel = "^6.25.2"
geopandas = "^0.13.2"
geoplot = "^0.5.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"