usa-dashboard icon indicating copy to clipboard operation
usa-dashboard copied to clipboard

Philadelphia Crime Data

Open seanjtaylor opened this issue 8 years ago • 6 comments

seanjtaylor avatar Jan 13 '17 18:01 seanjtaylor

Philly Open Data - Crime:

https://www.opendataphilly.org/dataset/crime-incidents

MSilb7 avatar Jan 19 '17 01:01 MSilb7

Update - API help for Philly Data here: https://dev.socrata.com/foundry/data.phila.gov/sspu-uyfa

I have a python script that pulls crime type and the count, but it's only pulling the first 1000 records. I'll see if I can find how to remove the limit (this is my first time working with an API).

MSilb7 avatar Jan 20 '17 03:01 MSilb7

you can pass in e.g. $limit=50000 (in theory the newest version of the api should let you pull in unlimted records but Ihaven't got that bit working yet). If you do have more than 50000 records you paginate with the $offset query param.

see https://dev.socrata.com/docs/paging.html

wwymak avatar Jan 21 '17 00:01 wwymak

Philadelphia Python Notebook:

https://github.com/MSilb7/DataForDemocracy/blob/master/PhiladelphiaExtract.ipynb

MSilb7 avatar Jan 24 '17 01:01 MSilb7

Looks good! phi_homicides

seanjtaylor avatar Jan 24 '17 23:01 seanjtaylor

Interesting: Week 10: 3/7 - 3/13 Week 29: 7/18 - 7/24 Week 47: 11/21-11/27

MSilb7 avatar Jan 25 '17 00:01 MSilb7