-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add DOHMH rodent inspections dataset (#337)
Adds the DOHMH's Rodent Inspections dataset While working on this I caught a bug in typecast.time(), that wasn't handling 12pm correctly, causing nulls. I've simplified the approach and added some addition tests.
- Loading branch information
Showing
8 changed files
with
89 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
files: | ||
- | ||
url: https://data.cityofnewyork.us/api/views/p937-wjvj/rows.csv?accessType=DOWNLOAD | ||
dest: dohmh_rodent_inspections.csv | ||
sql: | ||
- dohmh_rodent_inspections.sql | ||
schema: | ||
table_name: dohmh_rodent_inspections | ||
fields: | ||
InspectionType: text | ||
JobTicketOrWorkOrderId: integer | ||
JobId: text | ||
JobProgress: integer | ||
BoroCode: char(1) | ||
Block: char(5) | ||
Lot: char(4) | ||
HouseNumber: text | ||
StreetName: text | ||
ZipCode: text | ||
XCoord: numeric | ||
YCoord: numeric | ||
Latitude: numeric | ||
Longitude: numeric | ||
Borough: text | ||
InspectionDate: timestamp | ||
Result: text | ||
ApprovedDate: timestamp | ||
CommunityBoard: text | ||
CouncilDistrict: text | ||
CensusTract: text | ||
Bin: char(7) | ||
Nta: text | ||
bbl: char(10) | ||
skip: | ||
- Bbl | ||
- Location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE INDEX dohmh_rodent_inspections_bbl_idx ON dohmh_rodent_inspections (bbl); | ||
CREATE INDEX dohmh_rodent_inspections_inspectiondate_idx ON dohmh_rodent_inspections (inspectiondate); | ||
CREATE INDEX dohmh_rodent_inspections_approveddate_idx ON dohmh_rodent_inspections (ApprovedDate); | ||
CREATE INDEX dohmh_rodent_inspections_result_idx ON dohmh_rodent_inspections (result); | ||
CREATE INDEX dohmh_rodent_inspections_inspectiontype_idx ON dohmh_rodent_inspections (inspectiontype); | ||
CREATE INDEX dohmh_rodent_inspections_inspectiontype_jobticketorworkorderid_idx ON dohmh_rodent_inspections (inspectiontype, JobTicketOrWorkOrderId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
INSPECTION_TYPE,JOB_TICKET_OR_WORK_ORDER_ID,JOB_ID,JOB_PROGRESS,BBL,BORO_CODE,BLOCK,LOT,HOUSE_NUMBER,STREET_NAME,ZIP_CODE,X_COORD,Y_COORD,LATITUDE,LONGITUDE,BOROUGH,INSPECTION_DATE,RESULT,APPROVED_DATE,LOCATION,COMMUNITY BOARD,COUNCIL DISTRICT,CENSUS TRACT,BIN,NTA | ||
Initial,13661515,PC8122655,1,,1,00529,0009,,,0,,,,,Manhattan,06/07/2023 04:36:13 PM,Passed,06/08/2023 10:38:30 AM,,,,,, | ||
Initial,11507405,PC7504205,1,,5,00062,0113,000,YORK AVENUE,,,,0,0,Staten Island,09/16/2010 04:00:00 PM,Failed for Other R,09/17/2010 09:47:30 AM,"(0.0, 0.0)",,,,, | ||
Initial,13264492,PC7744572,1,,2,02857,0095,0000,JEROME AVENUE,,,,0,0,Bronx,07/28/2021 12:48:53 PM,Passed,07/29/2021 01:19:32 PM,"(0.0, 0.0)",,,,, | ||
Initial,13252138,PC7732344,1,,2,02409,0059,,,10451,,,,,Bronx,07/07/2021 08:49:45 AM,Passed,07/08/2021 10:18:56 AM,,,,,, | ||
Initial,13213464,PC7684724,1,1000520021,1,00052,0021,125,Cedar Street,10006,,,40.709622926374,-74.012635256681,Manhattan,03/26/2021 12:45:41 PM,Failed for Other R,03/29/2021 10:42:23 AM,"(40.709622926374, -74.012635256681)",1,1,13,1001040,Financial District-Battery Park City |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters