From 17b4be5fafcaf38f2a56fc5e33a8a35c33b4845f Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 09:38:08 -0400 Subject: [PATCH 01/12] reorganizing folders --- .../01_oath_charges.R | 0 .../01_oath_eda_cleaning.R | 0 .../02_oath_summaries.R | 6 +- .../03_oath_visuals.R | 5 +- code/for_carto_map/04_carto_queries.R | 61 +++++++++++++++++++ 5 files changed, 69 insertions(+), 3 deletions(-) rename code/{ => dirty_sidewalk_oath}/01_oath_charges.R (100%) rename code/{ => dirty_sidewalk_oath}/01_oath_eda_cleaning.R (100%) rename code/{ => dirty_sidewalk_oath}/02_oath_summaries.R (96%) rename code/{ => dirty_sidewalk_oath}/03_oath_visuals.R (99%) create mode 100644 code/for_carto_map/04_carto_queries.R diff --git a/code/01_oath_charges.R b/code/dirty_sidewalk_oath/01_oath_charges.R similarity index 100% rename from code/01_oath_charges.R rename to code/dirty_sidewalk_oath/01_oath_charges.R diff --git a/code/01_oath_eda_cleaning.R b/code/dirty_sidewalk_oath/01_oath_eda_cleaning.R similarity index 100% rename from code/01_oath_eda_cleaning.R rename to code/dirty_sidewalk_oath/01_oath_eda_cleaning.R diff --git a/code/02_oath_summaries.R b/code/dirty_sidewalk_oath/02_oath_summaries.R similarity index 96% rename from code/02_oath_summaries.R rename to code/dirty_sidewalk_oath/02_oath_summaries.R index bf747aa..6248c04 100644 --- a/code/02_oath_summaries.R +++ b/code/dirty_sidewalk_oath/02_oath_summaries.R @@ -38,7 +38,7 @@ pad_vios <- all_vios_bbl %>% # unzipped from 'https://data.cityofnewyork.us/download/2v4z-66xt/application%2Fx-zip-compressed' lion <- read_sf("lion/lion.gdb", "lion") %>% st_as_sf() %>% - st_cast("MULTILINESTRING") %>% + #st_cast("MULTILINESTRING") %>% st_transform("+proj=longlat +datum=WGS84") # check & clean subset @@ -91,3 +91,7 @@ mapview(all_vios.shp %>% zcol = "category", col.regions = pal_nycc(), legend = TRUE, alpha.regions = 0.01, cex=2, lwd=0.01) + +lion$types <- as.data.frame(st_geometry_type(lion)) + +lion_curve <- lion %>% filter(types=="MULTICURVE") diff --git a/code/03_oath_visuals.R b/code/dirty_sidewalk_oath/03_oath_visuals.R similarity index 99% rename from code/03_oath_visuals.R rename to code/dirty_sidewalk_oath/03_oath_visuals.R index 36c47b6..33d40e9 100644 --- a/code/03_oath_visuals.R +++ b/code/dirty_sidewalk_oath/03_oath_visuals.R @@ -244,10 +244,11 @@ plot1 %>% gtsave("visuals/dirtiest_streets.html") # reference: https://github.com/r-spatial/sf/issues/2203#issuecomment-1634794519 fix_geom<-lion_vios[grepl("list\\(list",lion_vios$id)==T,] fixed=c() -for(i in 1:dim(fix_geom)[1]){ - fix_geom$SHAPE[i]=st_cast(fix_geom$SHAPE[i], "MULTILINESTRING") +for(i in 1:dim(lion_curve)[1]){ + lion_curve$SHAPE[i]=st_cast(lion_curve$SHAPE[i], "MULTILINESTRING") } + # bin cut offs based on quantiles cut_996 <- quantile(lion_vios.shp$vios_per_length,.996) # 0%-99.5% of streets : < 1 violation per 1ft of a street's length diff --git a/code/for_carto_map/04_carto_queries.R b/code/for_carto_map/04_carto_queries.R new file mode 100644 index 0000000..2a61cfb --- /dev/null +++ b/code/for_carto_map/04_carto_queries.R @@ -0,0 +1,61 @@ +# for carto + +# SODA API SQL Query for Reference --------------- +https://data.cityofnewyork.us/resource/erm2-nwe9.csv?$query=SELECT +`created_date`, +`agency`, +`complaint_type`, +`descriptor`, +`location_type`, +`incident_address`, +`resolution_description`, +`latitude`, +`longitude`, +`location`, +`bbl`, +`:@computed_region_92fq_4b7q` WHERE `created_date` >= "2022-09-01T00:00:00" :: floating_timestamp AND +(caseless_one_of(`agency`, "DSNY", "DEP") + AND caseless_one_of( + `complaint_type`, + "Dirty Condition", + "Dirty Conditions", + "Missed Collection (All Materials)", + "Missed Collection", + "Sweeping/Inadequate", + "Sweeping/Missed", + "Sweeping/Missed-Inadequate", + "Street Sweeping Complaint", + "Street Condition", + "Illegal Dumping", + "Litter Basket Complaint", + "Overflowing Litter Baskets", + "DEP Sidewalk Condition", + "Derelict Vehicle", + "Derelict Vehicles", + "Abandoned Vehicle", + )) OR (caseless_one_of( + `descriptor`, + "Catch Basin Clogged/Flooding (Use Comments) (SC)", + "Grease In Sewer/Catch Basin (IDG)" +)) LIMIT 999999999999 + +# url endcoded ---------- +carto_url <- c('https://data.cityofnewyork.us/resource/erm2-nwe9.csv?$query=SELECT`created_date`,`agency`,`complaint_type`,`descriptor`,`location_type`,`incident_address`,`resolution_description`,`latitude`,`longitude`,`bbl`,`location`,`:@computed_region_92fq_4b7q`%20WHERE%20`created_date`%20%3E=%20%222022-09-01T00:00:00%22%20::%20floating_timestamp%20AND(caseless_one_of(`agency`,%20%22DSNY%22,%20%22DEP%22)%20%20AND%20caseless_one_of(%20%20%20%20`complaint_type`,%20%20%20%20%22Dirty%20Condition%22,%20%20%20%20%22Dirty%20Conditions%22,%20%20%20%20%22Missed%20Collection%20(All%20Materials)%22,%20%20%20%20%22Missed%20Collection%22,%20%20%20%20%22Sweeping/Inadequate%22,%20%20%20%20%22Sweeping/Missed%22,%20%20%20%20%22Sweeping/Missed-Inadequate%22,%20%20%20%20%22Street%20Sweeping%20Complaint%22,%20%20%20%20%22Street%20Condition%22,%20%20%20%20%22Illegal%20Dumping%22,%20%20%20%20%22Litter%20Basket%20Complaint%22,%20%20%20%20%22Overflowing%20Litter%20Baskets%22,%20%20%20%20%22DEP%20Sidewalk%20Condition%22,%20%20%20%20%22Derelict%20Vehicle%22,%20%20%20%20%22Derelict%20Vehicles%22,%20%20%20%20%22Derelict%20Bicycle%22,%20%20%20%20%22Abandoned%20Vehicle%22%20%20))%20OR%20(caseless_one_of(%20%20`descriptor`,%20%20%22Catch%20Basin%20Clogged/Flooding%20(Use%20Comments)%20(SC)%22,%20%20%22Grease%20In%20Sewer/Catch%20Basin%20(IDG)%22))%20LIMIT%20999999999999') + +sanitation_311_carto <- vroom(carto_url) + +carto_311<- sanitation_311_carto %>% + filter(created_date >='2022-09-01' & created_date <='2023-09-01') %>% + drop_na(latitude,bbl) %>% + mutate(complaint_type = case_when( + descriptor == "Catch Basin Clogged/Flooding (Use Comments) (SC)" ~ + "Catch Basin Clogged/Flooding", + descriptor == "Grease In Sewer/Catch Basin (IDG)" ~ + "Grease In Sewer/Catch Basin", + TRUE ~ complaint_type)) %>% + filter(complaint_type != "Street Sweeping Complaint") + +carto_aggregate + +write_csv(sanitation_311_carto, 'data/output/for_carto_311_sanitation.csv') + From f329caf33b819e147731a18e083899f2ff949b51 Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 09:46:34 -0400 Subject: [PATCH 02/12] updated charge code csv --- data/output/charges.csv | 317 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 data/output/charges.csv diff --git a/data/output/charges.csv b/data/output/charges.csv new file mode 100644 index 0000000..a85da5e --- /dev/null +++ b/data/output/charges.csv @@ -0,0 +1,317 @@ +charge_1_code,n,relevant_charge,charge_1_code_description +AS18,3,storage receptacles,"STORAGE OF RECEPTACLES NON-COLLECTION DAY , STORAGE OF RECEPTACLES 1ST OCCURRENCE , STORAGE OF RECEPTACLES" +AD09,2,remove,"OBSTRUCTION OF STREET W CONSTRUCTION MATERIALS EQUIPMENT W O PERMIT , CONSTRUCTION MATERIALS EQUIPMENT STORED ON STREET W 0 PERMIT" +AR7G,2,FAILURE TO RECYCLE,"FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION(1TO8DWELLING UNITS)" +AS02,2,remove,"POSTING OF SIGN PERMIT , POSTING OF SIGN PERMIT, WASTE REMOVAL" +AS06,2,dirty sidewalk,"DIRTY SIDEWALK , DIRTY SIDEWALK DIRTY AREA" +AS08,2,debris,"DUST OR SUBSTANCES FLYING 1ST OCCURRENCE , DUST OR SUBSTANCES FLYING" +AS09,2,spills,"SPILLAGE FROM A RECEPTACLE 1ST OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE" +AS13,2,illegal dumping,"ILLEGAL DUMPING OPERATOR OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OPERATOR OF VEHICLE - 1ST AND 2ND OFFENSE" +AS14,2,illegal dumping,"ILLEGAL DUMPING OWNER OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OWNER OF VEHICLE 1ST AND 2ND OFFENSE" +AS15,2,illegal dumping,"ILLEGAL DUMPING CITIZEN COMPLAINANT - 1ST OFFENSE , ILLEGAL DUMPING CITIZEN COMPLAINT - 1ST AND 2ND OFFENSE" +AS16,2,illegal dumping,"IMPROPER DISPOSAL 1ST OCCURRENCE , IMPROPER DISPOSAL 1ST OFFENSE" +AS19,2,debris,"LOOSE RUBBISH 1ST OCCURRENCE , LOOSE RUBBISH" +AS20,2,illegal dumping,"IMPROPER DISPOSAL DSNY LITTER BASKET 1ST OFFENSE , IMPROPER USE OF DSNY LITTER BASKET" +AS37,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE" +AS39,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE" +AS9A,2,spills,"SPILLAGE FROM A RECEPTACLE 2ND OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, SECOND OFFENSE" +AS9B,2,spills,"SPILLAGE FROM A RECEPTACLE 3RD OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, THIRD OFFENSE" +ASBG,2,not related,"POSSESS SELL OFFER POLYSTYRENE SINGLE SERVICE ARTICLE STORE 1ST , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES STORE 1ST" +ASP1,2,storage receptacles,"UNCOVERED RECEPTACLES 1ST OCCURRENCE , UNCOVERED RECEPTACLES 1ST OFFENSE" +ASP4,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL--BEDDING 1ST OCCURRENCE , IMPROPER DISPOSAL BEDDING 1ST OFFENSE" +ASP7,2,storage receptacles,"IMPROPER RECEPTACLES 1ST OCCURRENCE , IMPROPER RECEPTACLES 1ST OFFENSE" +ASR7,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS HOTEL 100 OR MORE ROOMS 1ST , FAILURE TO RECYCLE ORGANICS HOTEL 1ST" +ASU4,2,FAILURE TO RECYCLE,"ORGANICS MIXED WITH NON-ORGANICS MATERIALS 1ST , ORGANICS MIXED WITH NON-ORGANIC MATERIALS 1ST" +ASX1,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE AT LEAST 7,000 SQUARE FEET 1ST , FAIL TO RECYCLE ORGANICS FSE AT LEAST 15,000 SQ FT 1ST OFFENSE" +ASX4,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE CHAIN 2 OR MORE 1ST , FAIL TO RECYCLE ORGANICS FSE CHAIN 100 OR MORE 1ST OFFENSE" +ASX7,2,FAILURE TO RECYCLE,"FAIL TO RECYCLE ORGANICS, FOOD STORE AT LEAST 10,000 SQFT CHAIN 1ST , FAIL TO RECYCLE ORGANICS RETAIL FOOD STORE AT LEAST 25000 SQ FT 1ST" +ASZ4,2,storage receptacles,"INSUFFICIENT RECEPTACLES 1ST OCCURRENCE , INSUFFICIENT RECEPTACLES 1ST OFFENSE" +ASZ7,2,storage receptacles,"BROKEN RECEPTACLES 1ST OCCURRENCE , BROKEN RECEPTACLES 1ST OFFENSE" +A190,1,remove,PERFORMING PLUMBING WORK WITHOUT A MASTER PLUMBER LICENSE +A1D1,1,remove,UNLAWFUL ADVERTISEMENT FOR CERTAIN OCCUPANCIES - 3RD OFFENSE OR MORE +AA03,1,remove,"FAILURE TO COMPLY WITH DIRECTIVES OF POLICE,PARK SUPERVISOR,LIFEGUARD" +AA04,1,remove,FAILURE TO COMPLY WITH DIRECTIONS PROHIBITIONS ON SIGNS +AA06,1,remove,"CUTTING, REMOVAL, OR DESTRUCTION OF A TREE" +AA13,1,illegal dumping,UNLAWFUL DUMPING +AA35,1,remove,UNAUTHORIZED CONSUMPTION POSSESSION OF ALCOHOLIC BEVERAGE +AA75,1,remove,SMOKING IN A PARK OR ON OTHER PROPERTY UNDER JURISDICTION OF DEPT. +AB01,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF LEAD ACID BATTERY +AD06,1,improper signage ,IDENTIFYING SIGNS IMPROPERLY DISPLAYED OR MISSING +AD07,1,remove,CONSTRUCTING VAULT W O LICENSE OR REVOCABLE CONSENT +AD18,1,remove,CANOPY WITHOUT PERMIT +AD19,1,remove,POST POLE FLAGPOLE SOCKET LAMPPOST W O PERMIT CONSENT +AD30,1,remove,FAILURE TO COMPLY WITH THE TERMS AND CONDITIONS OF DOT PERMITS +AD6L,1,remove,"RIGHT OF WAY - FAILURE TO YIELD, PHYSICAL INJURY" +AD6M,1,remove,LEAVING THE SCENE - PROPERTY DAMAGE FIRST OFFENSE +ADC9,1,storage receptacles,FAIL TO HAVE PROPER ST PROTECTION UNDER COMMERCIAL REFUSE CONTAINER +ADF3,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 1ST OFFENSE +ADF4,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 2ND+ OFFENSE +ADP4,1,remove,FAILURE TO DISPLAY INTERCITY BUS PERMIT- 2ND SUBSEQUENT OFFENSE +AE24,1,remove,EMISSION OF ODOROUS AIR CONTAMINANT 1ST OFF +AE27,1,remove,EMISSION OF AIR CONTAMINANT FROM VEHICLE 1ST OFFENSE +AE38,1,remove,AIR CONTAMINANT FROM OPEN FIRE +AE51,1,remove,IDLING OF MOTOR VEHICLE ENGINE MORE THAN THREE MINUTES 1ST OFF +AF25,1,remove,NA +AF99,1,remove,NYC HEALTH CODE PROVISION - MISCELLANEOUS +AFJ3,1,remove,MFVU UNSECURED WHEN LEFT UNATTENDED FOR MORE THAN ONE-HALF HOUR +AFK2,1,spills,SOLID AND LIQUID WASTE CAUSED BY THE OPERATION OF THE UNIT NOT COLLECT +AFW3,1,remove,OPERATING A MFVU UNIT WITHOUT A PERMIT IN ANY PUBLIC SPACE +AFW5,1,remove,OPERATING A MFVU IN ANY PUBLIC SPACE WITHOUT A LICENSE +AFY3,1,remove,ITEMS NOT IN OR UNDER CART EXCEPT WASTE CONTAINER +AFY4,1,remove,VENDING AT TIME OR PLACE PROHIBITED +AFY6,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT., OR NOT AT CURB" +AFY8,1,remove,PUSHCART TOUCHING OR LEANING AGAINST BUILDING +AFY9,1,remove,"VENDING IN BUS STOP, SIDEWALK NEXT TO A HOSPITAL OR HEALTH FACILITY" +AFZ5,1,spills,"FAILURE TO REMOVE AND CLEAN AREA OF ANY WASTE, DEBRIS OR FOOD SPILLAGE" +AG01,1,remove,UNLICENSED GENERAL VENDOR INCLUDING CONT D UNLICENSED ACTIVITY 1ST +AG11,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT. WIDE, OR NOT AT CURB 1ST" +AG12,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST +AG14,1,remove,STAND GOODS AGAINST DISPLAY WINDOW WITHIN 20 FT. OF EXITS 1ST +AG15,1,remove,VENDING IN PROHIBITED AREA OF SIDEWALK OR STREET 1ST +AG21,1,remove,VEND AT TIMES PLACES RESTRICTED BY VENDOR REVIEW PANEL 1ST +AG23,1,remove,"VEND ON VENT, CELLAR DOOR, MANHOLE, OR SUBWAY GRATING 1ST" +AG25,1,remove,VENDING FROM A PARKED MOTOR VEHICLE 1ST +AG26,1,remove,ILLEGAL USE OF ELECTRICAL OIL GAS POWERED DEVICE +AG27,1,remove,VENDING TOO CLOSE TO PROHIBITED PLACES 1ST +AGE3,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST +AGE7,1,remove,VENDING WITHIN 20 FT FROM ENTRANCE EXIT OF BUILDING 1ST +AGF6,1,remove,VEND W IN 5FT OF BUS SHELTER NEWSSTAND PUBLIC PHONE DISABLE RAMP 1ST +AGI7,1,remove,VENDING ON SIDEWALK LESS THAN 10 FEET MIDTOWN 1ST +AH2I,1,remove,TRANSFER OF FOOD TO UNLICENSED VENDOR +AH30,1,IMPROPER DISPOSAL,FAILURE TO REMOVE LOCKING DEVICE FROM DISCARDED REFRIGERATOR +AH3G,1,IMPROPER DISPOSAL,IMPROPER GARBAGE COLLECTION AND OR DISPOSAL +AH3I,1,spills,FAILURE TO PROPERLY REMOVE AND OR CLEAN DEBRIS AND CONSUMER LITTER +AH50,1,rats,RAT OR OTHER PEST INFESTATION +AH61,1,remove,CONTROL OF DOGS AND OTHER ANIMALS TO PREVENT NUISANCE +AH62,1,remove,DOGS TO BE RESTRAINED +AHG3,1,remove,"DOG, CAT NOT TIMELY EUTHANIZED" +AHH8,1,remove,FAILURE TO TAKE REASONABLE PRECAUTIONS TO PROTECT HEALTH AND SAFETY +AHJ5,1,remove,FAIL TO COMPLY WITH EXEC ORDER 228 AS EXTENDED 1ST OFFENSE +AK09,1,spills,FAILURE TO REMOVE CANINE WASTE +AN62,1,remove,UNAUTHORIZED USE OF MOTOR VEHICLE CLAXON +AR01,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 9+ DWELLING UNITS +AR02,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 9+ DWELLING UNITS +AR03,1,improper signage ,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9+ DWELLING UNITS +AR04,1,storage receptacles,NO ACCESSABLE RECYCLING STORAGE AREA 9+ DWELLING UNITS +AR05,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 9+ DWELLING UNITS +AR06,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINERS 9+ DWELLING UNITS +AR07,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS +AR08,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS +AR09,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 9+ DWELLING UNITS +AR10,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS +AR11,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION WITH NON-RECYC 9+ DWELLING UNITS +AR12,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER NINE OR MORE DWLNG UNITS +AR14,1,improper signage ,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELLING UNIT +AR15,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS +AR17,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 9+ DWELLING UNITS +AR18,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS +AR19,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS +AR1A,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 9+ DWELLING UNITS +AR1E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1 TO 8 DWELLING UNITS +AR1F,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 4 TO 8 DWELLING UNITS +AR1G,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 1 TO 8 DWELLING UNITS +AR1H,1,IMPROPER DISPOSAL,NON-RECYC LEFT IN RECYC CONTAINER FOR COLLECTION 1TO8 DWELLING UNITS +AR1J,1,storage receptacles,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYC 1 TO 8 DWELLING UNITS +AR20,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS +AR21,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNTS +AR22,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR25,1,improper signage ,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELNG UNITS +AR26,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS +AR2E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1-8 DWELLING UNITS +AR31,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS +AR32,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS +AR33,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR34,1,RECYCLING PROGRAM,FAILURE TO ESTABLISH RECYCLING PROGRAM +AR35,1,RECYCLING PROGRAM,FAILURE TO NOTIFY EMPLOYEES ABOUT RECYCLING PROGRAM +AR36,1,improper signage ,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED +AR41,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE DESIGNATED RECYCLABLES +AR44,1,improper signage ,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED +AR46,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE NON-FOOD BEVERAGE RECYCLABLES +AR48,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYCLABLES 9+ DWELLING UNITS +AR4E,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 1 TO 8 DWELLING UNITS +AR4F,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 4 TO 8 DWELLING UNITS +AR4G,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPES MAGAZINES CARDBOARD 1 TO 8 DWELLING UNITS +AR4H,1,IMPROPER DISPOSAL,RECYC PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS +AR51,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION +AR6B,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR6H,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS +AR70,1,RECYCLING PROGRAM,NO WRITTEN RECYCLING NOTICE TO TENANTS EMPLOYEES +AR76,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SEPARATION OF PAPER TRANSFER STATIONS +AR79,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL-RECYCLABLE OR COMMINGLED MATERIALS TRANSFER STN-2D +AR7C,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION 4TH OR SUBSEQUENT VIOL IN 6MON +AR7E,1,improper signage ,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 4 TO 8 DWELLING UNITS +AR7F,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 1 TO 8 DWELLING UNITS +AR7H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS +AR8G,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS +AR9H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS +ARA1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST +ARA7,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SOURCE SEPARATION 1ST +ARB1,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SINGLE STREAM 1ST +ARB4,1,IMPROPER DISPOSAL,MIXED YARD WASTE 1ST +ARC1,1,IMPROPER DISPOSAL,MIXED CONSTRUCTION AND DEMOLITION DEBRIS 1ST +ARC4,1,IMPROPER DISPOSAL,RECYCLABLES MIXED WITH OTHER RECYCLABLES SOURCE SEPARATION 1ST +ARC7,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SOURCE SEP 1ST +ARD1,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SINGLE STR 1ST +ARD7,1,IMPROPER DISPOSAL,SEPARATED RECYCLABLE MATERIALS NOT MAINTAINED PRIOR TO COLLECTION 1ST +ARE1,1,RECYCLING PROGRAM,FAIL NOTIFY TEN OCC EMPLOYEES ABT RECY REQ IN WRITING SOURCE SEP 1ST +ARE7,1,improper signage ,FAILURE TO POST SIGNAGE IN STORAGE AREA SOURCE SEP 1ST +ARF1,1,improper signage ,FAILURE TO POST SIGNAGE IN STORAGE AREA SINGLE ST 1ST +ARF4,1,improper signage ,FAILURE TO POST SIGNAGE PUBLIC AREA SOURCE SEP 1ST +ARF7,1,improper signage ,FAILURE TO POST SIGNAGE PUBLIC AREA SINGLE STREAM 1ST +ARG1,1,improper signage ,UNLABELED RECYCLING CONTAINER OWNER LESSEE SOURCE SEP 1ST +ARG4,1,improper signage ,UNLABELED RECYCLING CONTAINER OWNER LESSEE SINGLE STREAM 1ST +ARG7,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST +ARH1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SINGLE STREAM 1ST +ARH4,1,improper signage ,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SOURCE SEP 1ST +ARH7,1,improper signage ,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SINGLE STREAM 1ST +ARI1,1,improper signage ,FAILURE TO POST SIGNAGE SOURCE SEPARATION 1ST +ARI4,1,improper signage ,FAILURE TO POST SIGNAGE SINGLE STREAM 1ST +AS01,1,IMPROPER DISPOSAL,REMOVAL OF COMMERCIAL WASTE +AS03,1,littering,LITTERING 1ST OFFENSE +AS04,1,littering,SWEEP-OUT 1ST OFFENSE +AS05,1,littering,THROW-OUT 1ST OFFENSE +AS07,1,obstruction,SIDEWALK OBSTRUCTION +AS10,1,hazards,NOXIOUS LIQUIDS +AS11,1,remove,INTERFERING WITH D.S. EMPLOYEE +AS12,1,remove,UNAUTHORIZED DISTURBANCE OR REMOVAL OF RECYCLABLE MATERIALS-NO VEHICLE +AS17,1,IMPROPER DISPOSAL,SEPARATION AND WEIGHT +AS1Q,1,illegal dumping,ILLEGAL DUMPING OWNER OF VEHICLE 2ND OFFENSE +AS21,1,remove,"SNOW,ICE DIRT ON SIDEWALKS" +AS22,1,debris,"EARTH, ROCKS AND RUBBISH" +AS23,1,obstruction,STREET OBSTRUCTION +AS24,1,remove,DISABLED VEHICLE +AS26,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET +AS27,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF INFECTIOUS MEDICAL WASTE +AS28,1,hazards,IMPROPER TRANSPORT STORAGE DISPOSAL OF ASBESTOS WASTE +AS29,1,hazards,HAZARDOUS TRANSPORTATION STORAGE DISPOSAL OF ASBESTOS WASTE +AS2A,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL DSNY LITTER BASKET - 2ND OFFENSE +AS2C,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 2ND OFFENSE" +AS2D,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 3RD OFFENSE" +AS2M,1,remove,RECEIVED RECYCLABLES FOR STORAGE COLLECTION ETC. BY UNAUTH PERSONS-2ND +AS2P,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL - 1ST OFFENSE +AS30,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE +AS33,1,remove,ILLEGAL PLACEMENT OF STICKERS OR DECALS ON PUBLIC OR PRIVATE PROPERTY +AS36,1,remove,OPERATING TRANSFER STATION W O PERMIT NONPUTRESCIBLE WASTE +AS38,1,remove,OPERATING TRANSFER STATION W O PERMIT PUTRESCIBLE WASTE +AS3C,1,littering,LITTERING FROM A MOTOR VEHICLE 1ST OFFENSE +AS3F,1,spills,SPILLAGE FROM A MOTOR VEHICLE 1ST OFFENSE +AS40,1,remove,OPERATING DUMP FILL OPERATION W O PERMIT +AS41,1,remove,COMMISSIONER S RULES RE: FILL DUMP OPERATIONS +AS43,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF REGULATED HOUSEHOLD WASTE +AS44,1,remove,VEHICLE BODY - IMPROPER COLOR +AS50,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:NOT WET +AS51,1,hazards,"PRESENT FOR STORAGE ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS54,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:MIXED W OTH.WASTE +AS55,1,hazards,STORAGE OF ASBESTOS WASTE:UNCONTAINED UNSEALED +AS56,1,hazards,"STORAGE OF ASBESTOS WASTE:NOT WET,NOT 6 MIL" +AS57,1,hazards,STORAGE OF ASBESTOS WASTE:NO WARNING LABELS +AS58,1,hazards,STORAGE OF ASBESTOS WASTE:NO 24HR INSPECTION +AS59,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE SPARE LEAK-TIGHT CONTAINERS +AS60,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE WATER SUPPLY +AS61,1,hazards,STORAGE OF ASBESTOS WASTE:MIXED W OTHER WASTE +AS63,1,hazards,STORAGE OF ASBESTOS WASTE:50CUBIC YDS NO AUTHORIZATION +AS65,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS66,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:NOT WET,NOT 6 MIL" +AS69,1,hazards,PRESENT FOR TRANSPORT ASBESTOS WASTE:MIXED WITH OTHER WASTE +AS6B,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL 3RD OFFENSE +AS6M,1,dirty sidewalk,DIRTY AREA +AS6V,1,dirty sidewalk,DIRTY SIDEWALK DIRTY AREA VACANT LOT +AS72,1,hazards,"TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS74,1,hazards,TRANSPORT ASBESTOS WASTE:NO WARNING LABEL +AS8C,1,storage receptacles,STORAGE OF RECEPTACLES - 2ND OFFENSE +AS8D,1,storage receptacles,STORAGE OF RECEPTACLES - 3RD OFFENSE +AS8V,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET VACANT LOT +AS92,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS +AS94,1,remove,FAILURE TO FILE DEC MEDICAL WASTE PLANS +AS95,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS +AS96,1,SANITATION VIOLATION,SANITATION VIOLATION +AS97,1,dirty sidewalk,"DIRTY SIDEWALK,FAIL TO CLEAN 18 INTO STREET,SIDEWALK OBSTRUCTION 2ND" +AS98,1,SANITATION VIOLATION,SANITATION PROVISION - UNSPECIFIED SECTION +AS9C,1,debris,LOOSE RUBBISH - 2ND OFFENSE +AS9D,1,debris,LOOSE RUBBISH - 3RD OFFENSE +AS9I,1,remove,PUBLIC URINATION 1ST OFFENSE +ASA9,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 6PM +ASAC,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 8PM WITHOUT A RECEPTACLE +ASAF,1,storage receptacles,STORAGE OF RECEPTACLE PLACED OUT PRIOR TO 8PM IN UNCOVERED RECEPTACLE +ASAI,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT PRIOR TO 4AM +ASAL,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT AFTER 7AM +ASAO,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO 8PM W O A RECEPTACLE +ASAR,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO ONE HOUR OF CLOSING +ASAU,1,storage receptacles,STORAGE OF RECEPTACLES COM FAILURE TO REMOVE RECEPTACLES +ASAX,1,storage receptacles,STORAGE OF RECEPTACLES FAILURE TO REMOVE RECEPTACLES +ASBA,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES FSE 1ST +ASBD,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERV ARTICLES MOBILE FOOD 1ST +ASC1,1,improper signage ,FAIL DISPLAY OWNER INFORMATION ON PUBLICLY ACCESSIBLE COLLECTION BIN +ASC3,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN +ASC4,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN 2ND OFF +ASC7,1,storage receptacles,FAIL MAINTAIN COLLECTION BIN IN CLEAN NEAT CONDITION-PROPERTY OWNER +ASCB,1,RECYCLING PROGRAM,FAILURE TO REGISTER PUBLICLY ACCESSIBLE COLLECTION BIN WITH DSNY +ASCF,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF ELECTRONIC WASTE +ASDM,1,remove,IMPROPER RECEIPT OF A DEPARTMENT MARKED ITEM 1ST OFFENSE +ASDU,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM RPF 1ST +ASDX,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM SMF 1ST +ASF3,1,spills,SPILLAGE CONDITION FROM OVERFLOWING RECEPTACLE +ASF4,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY BAG AND OR BUNDLE REFUSE AND RECYCLABLES +ASF5,1,IMPROPER DISPOSAL,FAILURE TO PLACE BAGGED AND OR BUNDLED REFUSE AND RECY.AT PREDETER.LOC +ASGD,1,IMPROPER DISPOSAL,PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW W O CUSTOMER REQ +ASGJ,1,IMPROPER DISPOSAL,FAIL TO PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW ON REQUEST +ASGP,1,improper signage ,FAIL TO DISPLAY REQUIRED SIGNAGE ABOUT PLASTIC STRAW AVAILABILITY +ASH9,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE +ASJ5,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OPERATOR -1ST +ASK4,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -1ST +ASK5,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -2ND +ASK6,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -3RD +ASK7,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OPERATOR -1ST +ASL4,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR - 1ST +ASL5,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR -2ND +ASL6,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OWNER -1ST +ASL9,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OWNER -1ST +ASM3,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OWNER -1ST +ASN6,1,remove,REMOVAL TRANSPORT OF COMMERICAL RECYCLABLE MATERIAL OWNER -1ST +ASP2,1,storage receptacles,UNCOVERED RECEPTACLES 2ND OFFENSE +ASP3,1,storage receptacles,UNCOVERED RECEPTACLES 3RD OFFENSE +ASP5,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 2ND OFFENSE +ASP6,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 3RD OFFENSE +ASP8,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 2ND OFFENSE +ASP9,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 3RD OFFENSE +ASQ5,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OPERATOR +ASQ6,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OWNER +ASR4,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS STADIUM 1ST +ASR8,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 2ND +ASR9,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 3RD+ +ASS1,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 1ST" +ASS2,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 2ND" +ASS3,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 3RD+" +ASS4,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 1ST" +ASS5,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 2ND" +ASS6,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 3RD+" +AST7,1,remove,FAIL NOTIFY DSNY REGARDING ONSITE ORGANIC WASTE PROCESSING EQUIPMENT 1 +ASU1,1,improper signage ,ORGANICS CONTAINERS NOT LABELLED 1ST +ASU2,1,improper signage ,ORGANICS CONTAINERS NOT LABELLED 2ND +ASU3,1,improper signage ,ORGANICS CONTAINERS NOT LABELLED 3RD+ +ASU7,1,IMPROPER DISPOSAL,ORGANICS PLACED OUT FOR COLLECTION IN CONTAINER W O LATCHING DEVICE 1 +ASV1,1,IMPROPER DISPOSAL,ORGANICS IN STORAGE AREA PLACED IN A CONTAINER W O LATCHING DEVICE 1ST +ASV4,1,improper signage ,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 1ST +ASV5,1,improper signage ,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 2ND +ASV6,1,improper signage ,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 3RD+ +ASW4,1,improper signage ,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 1ST +ASW5,1,improper signage ,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 2ND +ASW6,1,improper signage ,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 3RD+ +ASY0,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT-9 OR MORE DWELLING UNITS 1 +ASY4,1,IMPROPER DISPOSAL,IMPROPER DISPERSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST +ASY7,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST +ASZ1,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT- 1 TO 8 DWELLING UNITS 1ST +ASZ6,1,storage receptacles,INSUFFICIENT RECEPTACLES 3RD OFFENSE +ASZ9,1,storage receptacles,BROKEN RECEPTACLES 3RD OFFENSE +AT12,1,dirty sidewalk,FAILURE TO PROVIDE WORKING PUBLIC PAY TELEPHONE OPERATOR SERVICES +AT13,1,dirty sidewalk,FAILED TO CLEAN MAINTAIN PUBLIC PAY TELEPHONE AS PER REQMNTS OF SUBSEC +AV01,1,adandoned vehicle,ABANDONING VEHICLE +AV02,1,remove,ILLEGAL PLACEMENT POSTERS STICKERS ON WINDSHIELDS WIPERS ON VEHICLES +AW44,1,remove,ILLEGAL USE OF HYDRANT S +AW51,1,remove,FAILED TO INSTALL A BACKFLOW PREVENTER +AW55,1,remove,FAILED TO RETURN METER PERMIT +AX25,1,remove,OPEN CONTAINER CONSUMPTION OF ALCOHOL ON STREETS +AX26,1,remove,BUSINESS UTILIZING MOTORIZED SCOOTER ALLOWING EMPLOYEE TO OPERATE 1ST +AZ98,1,remove,"UNSPECIFIED LAW, CODE OR REGULATION" +AZ99,1,remove,"UNCODED LAW, RULE, OR REGULATION" +NA,1,remove,NA \ No newline at end of file From 1ba98a3be7e3fada7f3815f747ce71827dc189d3 Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 09:47:41 -0400 Subject: [PATCH 03/12] rename file --- data/output/{charges.csv => oath_charges.csv} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename data/output/{charges.csv => oath_charges.csv} (100%) diff --git a/data/output/charges.csv b/data/output/oath_charges.csv similarity index 100% rename from data/output/charges.csv rename to data/output/oath_charges.csv From d62bba8c53d9e139153e3c57590f0bacfc91b4c8 Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 09:56:11 -0400 Subject: [PATCH 04/12] update grouped csv --- data/output/charges_grouped.csv | 634 ++++++++++++++++---------------- 1 file changed, 317 insertions(+), 317 deletions(-) diff --git a/data/output/charges_grouped.csv b/data/output/charges_grouped.csv index 5f76ba1..80d3326 100644 --- a/data/output/charges_grouped.csv +++ b/data/output/charges_grouped.csv @@ -1,317 +1,317 @@ -charge_1_code,n,relevant_charge,charge_1_code_description -AS18,3,storage receptacles,"STORAGE OF RECEPTACLES NON-COLLECTION DAY , STORAGE OF RECEPTACLES 1ST OCCURRENCE , STORAGE OF RECEPTACLES" -AD09,2,remove,"OBSTRUCTION OF STREET W CONSTRUCTION MATERIALS EQUIPMENT W O PERMIT , CONSTRUCTION MATERIALS EQUIPMENT STORED ON STREET W 0 PERMIT" -AR7G,2,IMPROPER DISPOSAL,"FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION(1TO8DWELLING UNITS)" -AS02,2,remove,"POSTING OF SIGN PERMIT , POSTING OF SIGN PERMIT, WASTE REMOVAL" -AS06,2,dirty sidewalk,"DIRTY SIDEWALK , DIRTY SIDEWALK DIRTY AREA" -AS08,2,debris,"DUST OR SUBSTANCES FLYING 1ST OCCURRENCE , DUST OR SUBSTANCES FLYING" -AS09,2,spills,"SPILLAGE FROM A RECEPTACLE 1ST OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE" -AS13,2,illegal dumping,"ILLEGAL DUMPING OPERATOR OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OPERATOR OF VEHICLE - 1ST AND 2ND OFFENSE" -AS14,2,illegal dumping,"ILLEGAL DUMPING OWNER OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OWNER OF VEHICLE 1ST AND 2ND OFFENSE" -AS15,2,illegal dumping,"ILLEGAL DUMPING CITIZEN COMPLAINANT - 1ST OFFENSE , ILLEGAL DUMPING CITIZEN COMPLAINT - 1ST AND 2ND OFFENSE" -AS16,2,illegal dumping,"IMPROPER DISPOSAL 1ST OCCURRENCE , IMPROPER DISPOSAL 1ST OFFENSE" -AS19,2,debris,"LOOSE RUBBISH 1ST OCCURRENCE , LOOSE RUBBISH" -AS20,2,illegal dumping,"IMPROPER DISPOSAL DSNY LITTER BASKET 1ST OFFENSE , IMPROPER USE OF DSNY LITTER BASKET" -AS37,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE" -AS39,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE" -AS9A,2,spills,"SPILLAGE FROM A RECEPTACLE 2ND OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, SECOND OFFENSE" -AS9B,2,spills,"SPILLAGE FROM A RECEPTACLE 3RD OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, THIRD OFFENSE" -ASBG,2,not related,"POSSESS SELL OFFER POLYSTYRENE SINGLE SERVICE ARTICLE STORE 1ST , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES STORE 1ST" -ASP1,2,storage receptacles,"UNCOVERED RECEPTACLES 1ST OCCURRENCE , UNCOVERED RECEPTACLES 1ST OFFENSE" -ASP4,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL--BEDDING 1ST OCCURRENCE , IMPROPER DISPOSAL BEDDING 1ST OFFENSE" -ASP7,2,storage receptacles,"IMPROPER RECEPTACLES 1ST OCCURRENCE , IMPROPER RECEPTACLES 1ST OFFENSE" -ASR7,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS HOTEL 100 OR MORE ROOMS 1ST , FAILURE TO RECYCLE ORGANICS HOTEL 1ST" -ASU4,2,FAILURE TO RECYCLE,"ORGANICS MIXED WITH NON-ORGANICS MATERIALS 1ST , ORGANICS MIXED WITH NON-ORGANIC MATERIALS 1ST" -ASX1,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE AT LEAST 7,000 SQUARE FEET 1ST , FAIL TO RECYCLE ORGANICS FSE AT LEAST 15,000 SQ FT 1ST OFFENSE" -ASX4,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE CHAIN 2 OR MORE 1ST , FAIL TO RECYCLE ORGANICS FSE CHAIN 100 OR MORE 1ST OFFENSE" -ASX7,2,FAILURE TO RECYCLE,"FAIL TO RECYCLE ORGANICS, FOOD STORE AT LEAST 10,000 SQFT CHAIN 1ST , FAIL TO RECYCLE ORGANICS RETAIL FOOD STORE AT LEAST 25000 SQ FT 1ST" -ASZ4,2,storage receptacles,"INSUFFICIENT RECEPTACLES 1ST OCCURRENCE , INSUFFICIENT RECEPTACLES 1ST OFFENSE" -ASZ7,2,storage receptacles,"BROKEN RECEPTACLES 1ST OCCURRENCE , BROKEN RECEPTACLES 1ST OFFENSE" -A190,1,remove,PERFORMING PLUMBING WORK WITHOUT A MASTER PLUMBER LICENSE -A1D1,1,remove,UNLAWFUL ADVERTISEMENT FOR CERTAIN OCCUPANCIES - 3RD OFFENSE OR MORE -AA03,1,remove,"FAILURE TO COMPLY WITH DIRECTIVES OF POLICE,PARK SUPERVISOR,LIFEGUARD" -AA04,1,remove,FAILURE TO COMPLY WITH DIRECTIONS PROHIBITIONS ON SIGNS -AA06,1,remove,"CUTTING, REMOVAL, OR DESTRUCTION OF A TREE" -AA13,1,illegal dumping,UNLAWFUL DUMPING -AA35,1,remove,UNAUTHORIZED CONSUMPTION POSSESSION OF ALCOHOLIC BEVERAGE -AA75,1,remove,SMOKING IN A PARK OR ON OTHER PROPERTY UNDER JURISDICTION OF DEPT. -AB01,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF LEAD ACID BATTERY -AD06,1,improper signage,IDENTIFYING SIGNS IMPROPERLY DISPLAYED OR MISSING -AD07,1,remove,CONSTRUCTING VAULT W O LICENSE OR REVOCABLE CONSENT -AD18,1,remove,CANOPY WITHOUT PERMIT -AD19,1,remove,POST POLE FLAGPOLE SOCKET LAMPPOST W O PERMIT CONSENT -AD30,1,remove,FAILURE TO COMPLY WITH THE TERMS AND CONDITIONS OF DOT PERMITS -AD6L,1,remove,"RIGHT OF WAY - FAILURE TO YIELD, PHYSICAL INJURY" -AD6M,1,remove,LEAVING THE SCENE - PROPERTY DAMAGE FIRST OFFENSE -ADC9,1,storage receptacles,FAIL TO HAVE PROPER ST PROTECTION UNDER COMMERCIAL REFUSE CONTAINER -ADF3,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 1ST OFFENSE -ADF4,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 2ND+ OFFENSE -ADP4,1,remove,FAILURE TO DISPLAY INTERCITY BUS PERMIT- 2ND SUBSEQUENT OFFENSE -AE24,1,remove,EMISSION OF ODOROUS AIR CONTAMINANT 1ST OFF -AE27,1,remove,EMISSION OF AIR CONTAMINANT FROM VEHICLE 1ST OFFENSE -AE38,1,remove,AIR CONTAMINANT FROM OPEN FIRE -AE51,1,remove,IDLING OF MOTOR VEHICLE ENGINE MORE THAN THREE MINUTES 1ST OFF -AF25,1,remove,NA -AF99,1,remove,NYC HEALTH CODE PROVISION - MISCELLANEOUS -AFJ3,1,remove,MFVU UNSECURED WHEN LEFT UNATTENDED FOR MORE THAN ONE-HALF HOUR -AFK2,1,spills,SOLID AND LIQUID WASTE CAUSED BY THE OPERATION OF THE UNIT NOT COLLECT -AFW3,1,remove,OPERATING A MFVU UNIT WITHOUT A PERMIT IN ANY PUBLIC SPACE -AFW5,1,remove,OPERATING A MFVU IN ANY PUBLIC SPACE WITHOUT A LICENSE -AFY3,1,remove,ITEMS NOT IN OR UNDER CART EXCEPT WASTE CONTAINER -AFY4,1,remove,VENDING AT TIME OR PLACE PROHIBITED -AFY6,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT., OR NOT AT CURB" -AFY8,1,remove,PUSHCART TOUCHING OR LEANING AGAINST BUILDING -AFY9,1,remove,"VENDING IN BUS STOP, SIDEWALK NEXT TO A HOSPITAL OR HEALTH FACILITY" -AFZ5,1,spills,"FAILURE TO REMOVE AND CLEAN AREA OF ANY WASTE, DEBRIS OR FOOD SPILLAGE" -AG01,1,remove,UNLICENSED GENERAL VENDOR INCLUDING CONT D UNLICENSED ACTIVITY 1ST -AG11,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT. WIDE, OR NOT AT CURB 1ST" -AG12,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST -AG14,1,remove,STAND GOODS AGAINST DISPLAY WINDOW WITHIN 20 FT. OF EXITS 1ST -AG15,1,remove,VENDING IN PROHIBITED AREA OF SIDEWALK OR STREET 1ST -AG21,1,remove,VEND AT TIMES PLACES RESTRICTED BY VENDOR REVIEW PANEL 1ST -AG23,1,remove,"VEND ON VENT, CELLAR DOOR, MANHOLE, OR SUBWAY GRATING 1ST" -AG25,1,remove,VENDING FROM A PARKED MOTOR VEHICLE 1ST -AG26,1,remove,ILLEGAL USE OF ELECTRICAL OIL GAS POWERED DEVICE -AG27,1,remove,VENDING TOO CLOSE TO PROHIBITED PLACES 1ST -AGE3,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST -AGE7,1,remove,VENDING WITHIN 20 FT FROM ENTRANCE EXIT OF BUILDING 1ST -AGF6,1,remove,VEND W IN 5FT OF BUS SHELTER NEWSSTAND PUBLIC PHONE DISABLE RAMP 1ST -AGI7,1,remove,VENDING ON SIDEWALK LESS THAN 10 FEET MIDTOWN 1ST -AH2I,1,remove,TRANSFER OF FOOD TO UNLICENSED VENDOR -AH30,1,IMPROPER DISPOSAL,FAILURE TO REMOVE LOCKING DEVICE FROM DISCARDED REFRIGERATOR -AH3G,1,IMPROPER DISPOSAL,IMPROPER GARBAGE COLLECTION AND OR DISPOSAL -AH3I,1,spills,FAILURE TO PROPERLY REMOVE AND OR CLEAN DEBRIS AND CONSUMER LITTER -AH50,1,rats,RAT OR OTHER PEST INFESTATION -AH61,1,remove,CONTROL OF DOGS AND OTHER ANIMALS TO PREVENT NUISANCE -AH62,1,remove,DOGS TO BE RESTRAINED -AHG3,1,remove,"DOG, CAT NOT TIMELY EUTHANIZED" -AHH8,1,remove,FAILURE TO TAKE REASONABLE PRECAUTIONS TO PROTECT HEALTH AND SAFETY -AHJ5,1,remove,FAIL TO COMPLY WITH EXEC ORDER 228 AS EXTENDED 1ST OFFENSE -AK09,1,spills,FAILURE TO REMOVE CANINE WASTE -AN62,1,remove,UNAUTHORIZED USE OF MOTOR VEHICLE CLAXON -AR01,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 9+ DWELLING UNITS -AR02,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 9+ DWELLING UNITS -AR03,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9+ DWELLING UNITS -AR04,1,storage receptacles,NO ACCESSABLE RECYCLING STORAGE AREA 9+ DWELLING UNITS -AR05,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 9+ DWELLING UNITS -AR06,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINERS 9+ DWELLING UNITS -AR07,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS -AR08,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS -AR09,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 9+ DWELLING UNITS -AR10,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS -AR11,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION WITH NON-RECYC 9+ DWELLING UNITS -AR12,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER NINE OR MORE DWLNG UNITS -AR14,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELLING UNIT -AR15,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS -AR17,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 9+ DWELLING UNITS -AR18,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS -AR19,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS -AR1A,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 9+ DWELLING UNITS -AR1E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1 TO 8 DWELLING UNITS -AR1F,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 4 TO 8 DWELLING UNITS -AR1G,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 1 TO 8 DWELLING UNITS -AR1H,1,IMPROPER DISPOSAL,NON-RECYC LEFT IN RECYC CONTAINER FOR COLLECTION 1TO8 DWELLING UNITS -AR1J,1,storage receptacles,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYC 1 TO 8 DWELLING UNITS -AR20,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS -AR21,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNTS -AR22,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS -AR25,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELNG UNITS -AR26,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS -AR2E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1-8 DWELLING UNITS -AR31,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS -AR32,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS -AR33,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS -AR34,1,RECYCLING PROGRAM,FAILURE TO ESTABLISH RECYCLING PROGRAM -AR35,1,RECYCLING PROGRAM,FAILURE TO NOTIFY EMPLOYEES ABOUT RECYCLING PROGRAM -AR36,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED -AR41,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE DESIGNATED RECYCLABLES -AR44,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED -AR46,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE NON-FOOD BEVERAGE RECYCLABLES -AR48,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYCLABLES 9+ DWELLING UNITS -AR4E,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 1 TO 8 DWELLING UNITS -AR4F,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 4 TO 8 DWELLING UNITS -AR4G,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPES MAGAZINES CARDBOARD 1 TO 8 DWELLING UNITS -AR4H,1,IMPROPER DISPOSAL,RECYC PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS -AR51,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION -AR6B,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS -AR6H,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS -AR70,1,RECYCLING PROGRAM,NO WRITTEN RECYCLING NOTICE TO TENANTS EMPLOYEES -AR76,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SEPARATION OF PAPER TRANSFER STATIONS -AR79,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL-RECYCLABLE OR COMMINGLED MATERIALS TRANSFER STN-2D -AR7C,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION 4TH OR SUBSEQUENT VIOL IN 6MON -AR7E,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 4 TO 8 DWELLING UNITS -AR7F,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 1 TO 8 DWELLING UNITS -AR7H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS -AR8G,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS -AR9H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS -ARA1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST -ARA7,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SOURCE SEPARATION 1ST -ARB1,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SINGLE STREAM 1ST -ARB4,1,IMPROPER DISPOSAL,MIXED YARD WASTE 1ST -ARC1,1,IMPROPER DISPOSAL,MIXED CONSTRUCTION AND DEMOLITION DEBRIS 1ST -ARC4,1,IMPROPER DISPOSAL,RECYCLABLES MIXED WITH OTHER RECYCLABLES SOURCE SEPARATION 1ST -ARC7,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SOURCE SEP 1ST -ARD1,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SINGLE STR 1ST -ARD7,1,IMPROPER DISPOSAL,SEPARATED RECYCLABLE MATERIALS NOT MAINTAINED PRIOR TO COLLECTION 1ST -ARE1,1,RECYCLING PROGRAM,FAIL NOTIFY TEN OCC EMPLOYEES ABT RECY REQ IN WRITING SOURCE SEP 1ST -ARE7,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SOURCE SEP 1ST -ARF1,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SINGLE ST 1ST -ARF4,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SOURCE SEP 1ST -ARF7,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SINGLE STREAM 1ST -ARG1,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SOURCE SEP 1ST -ARG4,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SINGLE STREAM 1ST -ARG7,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST -ARH1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SINGLE STREAM 1ST -ARH4,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SOURCE SEP 1ST -ARH7,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SINGLE STREAM 1ST -ARI1,1,improper signage,FAILURE TO POST SIGNAGE SOURCE SEPARATION 1ST -ARI4,1,improper signage,FAILURE TO POST SIGNAGE SINGLE STREAM 1ST -AS01,1,IMPROPER DISPOSAL,REMOVAL OF COMMERCIAL WASTE -AS03,1,littering,LITTERING 1ST OFFENSE -AS04,1,littering,SWEEP-OUT 1ST OFFENSE -AS05,1,littering,THROW-OUT 1ST OFFENSE -AS07,1,obstruction,SIDEWALK OBSTRUCTION -AS10,1,hazards,NOXIOUS LIQUIDS -AS11,1,remove,INTERFERING WITH D.S. EMPLOYEE -AS12,1,remove,UNAUTHORIZED DISTURBANCE OR REMOVAL OF RECYCLABLE MATERIALS-NO VEHICLE -AS17,1,IMPROPER DISPOSAL,SEPARATION AND WEIGHT -AS1Q,1,illegal dumping,ILLEGAL DUMPING OWNER OF VEHICLE 2ND OFFENSE -AS21,1,remove,"SNOW,ICE DIRT ON SIDEWALKS" -AS22,1,debris,"EARTH, ROCKS AND RUBBISH" -AS23,1,obstruction,STREET OBSTRUCTION -AS24,1,remove,DISABLED VEHICLE -AS26,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET -AS27,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF INFECTIOUS MEDICAL WASTE -AS28,1,hazards,IMPROPER TRANSPORT STORAGE DISPOSAL OF ASBESTOS WASTE -AS29,1,hazards,HAZARDOUS TRANSPORTATION STORAGE DISPOSAL OF ASBESTOS WASTE -AS2A,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL DSNY LITTER BASKET - 2ND OFFENSE -AS2C,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 2ND OFFENSE" -AS2D,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 3RD OFFENSE" -AS2M,1,remove,RECEIVED RECYCLABLES FOR STORAGE COLLECTION ETC. BY UNAUTH PERSONS-2ND -AS2P,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL - 1ST OFFENSE -AS30,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE -AS33,1,remove,ILLEGAL PLACEMENT OF STICKERS OR DECALS ON PUBLIC OR PRIVATE PROPERTY -AS36,1,remove,OPERATING TRANSFER STATION W O PERMIT NONPUTRESCIBLE WASTE -AS38,1,remove,OPERATING TRANSFER STATION W O PERMIT PUTRESCIBLE WASTE -AS3C,1,littering,LITTERING FROM A MOTOR VEHICLE 1ST OFFENSE -AS3F,1,spills,SPILLAGE FROM A MOTOR VEHICLE 1ST OFFENSE -AS40,1,remove,OPERATING DUMP FILL OPERATION W O PERMIT -AS41,1,remove,COMMISSIONER S RULES RE: FILL DUMP OPERATIONS -AS43,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF REGULATED HOUSEHOLD WASTE -AS44,1,remove,VEHICLE BODY - IMPROPER COLOR -AS50,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:NOT WET -AS51,1,hazards,"PRESENT FOR STORAGE ASBESTOS WASTE:UNCONTAINED,UNSEALED" -AS54,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:MIXED W OTH.WASTE -AS55,1,hazards,STORAGE OF ASBESTOS WASTE:UNCONTAINED UNSEALED -AS56,1,hazards,"STORAGE OF ASBESTOS WASTE:NOT WET,NOT 6 MIL" -AS57,1,hazards,STORAGE OF ASBESTOS WASTE:NO WARNING LABELS -AS58,1,hazards,STORAGE OF ASBESTOS WASTE:NO 24HR INSPECTION -AS59,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE SPARE LEAK-TIGHT CONTAINERS -AS60,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE WATER SUPPLY -AS61,1,hazards,STORAGE OF ASBESTOS WASTE:MIXED W OTHER WASTE -AS63,1,hazards,STORAGE OF ASBESTOS WASTE:50CUBIC YDS NO AUTHORIZATION -AS65,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" -AS66,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:NOT WET,NOT 6 MIL" -AS69,1,hazards,PRESENT FOR TRANSPORT ASBESTOS WASTE:MIXED WITH OTHER WASTE -AS6B,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL 3RD OFFENSE -AS6M,1,dirty sidewalk,DIRTY AREA -AS6V,1,dirty sidewalk,DIRTY SIDEWALK DIRTY AREA VACANT LOT -AS72,1,hazards,"TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" -AS74,1,hazards,TRANSPORT ASBESTOS WASTE:NO WARNING LABEL -AS8C,1,storage receptacles,STORAGE OF RECEPTACLES - 2ND OFFENSE -AS8D,1,storage receptacles,STORAGE OF RECEPTACLES - 3RD OFFENSE -AS8V,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET VACANT LOT -AS92,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS -AS94,1,remove,FAILURE TO FILE DEC MEDICAL WASTE PLANS -AS95,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS -AS96,1,SANITATION VIOLATION,SANITATION VIOLATION -AS97,1,dirty sidewalk,"DIRTY SIDEWALK,FAIL TO CLEAN 18 INTO STREET,SIDEWALK OBSTRUCTION 2ND" -AS98,1,SANITATION VIOLATION,SANITATION PROVISION - UNSPECIFIED SECTION -AS9C,1,debris,LOOSE RUBBISH - 2ND OFFENSE -AS9D,1,debris,LOOSE RUBBISH - 3RD OFFENSE -AS9I,1,remove,PUBLIC URINATION 1ST OFFENSE -ASA9,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 6PM -ASAC,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 8PM WITHOUT A RECEPTACLE -ASAF,1,storage receptacles,STORAGE OF RECEPTACLE PLACED OUT PRIOR TO 8PM IN UNCOVERED RECEPTACLE -ASAI,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT PRIOR TO 4AM -ASAL,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT AFTER 7AM -ASAO,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO 8PM W O A RECEPTACLE -ASAR,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO ONE HOUR OF CLOSING -ASAU,1,storage receptacles,STORAGE OF RECEPTACLES COM FAILURE TO REMOVE RECEPTACLES -ASAX,1,storage receptacles,STORAGE OF RECEPTACLES FAILURE TO REMOVE RECEPTACLES -ASBA,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES FSE 1ST -ASBD,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERV ARTICLES MOBILE FOOD 1ST -ASC1,1,improper signage,FAIL DISPLAY OWNER INFORMATION ON PUBLICLY ACCESSIBLE COLLECTION BIN -ASC3,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN -ASC4,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN 2ND OFF -ASC7,1,storage receptacles,FAIL MAINTAIN COLLECTION BIN IN CLEAN NEAT CONDITION-PROPERTY OWNER -ASCB,1,RECYCLING PROGRAM,FAILURE TO REGISTER PUBLICLY ACCESSIBLE COLLECTION BIN WITH DSNY -ASCF,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF ELECTRONIC WASTE -ASDM,1,remove,IMPROPER RECEIPT OF A DEPARTMENT MARKED ITEM 1ST OFFENSE -ASDU,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM RPF 1ST -ASDX,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM SMF 1ST -ASF3,1,spills,SPILLAGE CONDITION FROM OVERFLOWING RECEPTACLE -ASF4,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY BAG AND OR BUNDLE REFUSE AND RECYCLABLES -ASF5,1,IMPROPER DISPOSAL,FAILURE TO PLACE BAGGED AND OR BUNDLED REFUSE AND RECY.AT PREDETER.LOC -ASGD,1,IMPROPER DISPOSAL,PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW W O CUSTOMER REQ -ASGJ,1,IMPROPER DISPOSAL,FAIL TO PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW ON REQUEST -ASGP,1,improper signage,FAIL TO DISPLAY REQUIRED SIGNAGE ABOUT PLASTIC STRAW AVAILABILITY -ASH9,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE -ASJ5,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OPERATOR -1ST -ASK4,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -1ST -ASK5,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -2ND -ASK6,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -3RD -ASK7,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OPERATOR -1ST -ASL4,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR - 1ST -ASL5,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR -2ND -ASL6,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OWNER -1ST -ASL9,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OWNER -1ST -ASM3,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OWNER -1ST -ASN6,1,remove,REMOVAL TRANSPORT OF COMMERICAL RECYCLABLE MATERIAL OWNER -1ST -ASP2,1,storage receptacles,UNCOVERED RECEPTACLES 2ND OFFENSE -ASP3,1,storage receptacles,UNCOVERED RECEPTACLES 3RD OFFENSE -ASP5,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 2ND OFFENSE -ASP6,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 3RD OFFENSE -ASP8,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 2ND OFFENSE -ASP9,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 3RD OFFENSE -ASQ5,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OPERATOR -ASQ6,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OWNER -ASR4,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS STADIUM 1ST -ASR8,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 2ND -ASR9,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 3RD+ -ASS1,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 1ST" -ASS2,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 2ND" -ASS3,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 3RD+" -ASS4,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 1ST" -ASS5,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 2ND" -ASS6,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 3RD+" -AST7,1,remove,FAIL NOTIFY DSNY REGARDING ONSITE ORGANIC WASTE PROCESSING EQUIPMENT 1 -ASU1,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 1ST -ASU2,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 2ND -ASU3,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 3RD+ -ASU7,1,IMPROPER DISPOSAL,ORGANICS PLACED OUT FOR COLLECTION IN CONTAINER W O LATCHING DEVICE 1 -ASV1,1,IMPROPER DISPOSAL,ORGANICS IN STORAGE AREA PLACED IN A CONTAINER W O LATCHING DEVICE 1ST -ASV4,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 1ST -ASV5,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 2ND -ASV6,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 3RD+ -ASW4,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 1ST -ASW5,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 2ND -ASW6,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 3RD+ -ASY0,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT-9 OR MORE DWELLING UNITS 1 -ASY4,1,IMPROPER DISPOSAL,IMPROPER DISPERSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST -ASY7,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST -ASZ1,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT- 1 TO 8 DWELLING UNITS 1ST -ASZ6,1,storage receptacles,INSUFFICIENT RECEPTACLES 3RD OFFENSE -ASZ9,1,storage receptacles,BROKEN RECEPTACLES 3RD OFFENSE -AT12,1,dirty sidewalk,FAILURE TO PROVIDE WORKING PUBLIC PAY TELEPHONE OPERATOR SERVICES -AT13,1,dirty sidewalk,FAILED TO CLEAN MAINTAIN PUBLIC PAY TELEPHONE AS PER REQMNTS OF SUBSEC -AV01,1,adandoned vehicle,ABANDONING VEHICLE -AV02,1,remove,ILLEGAL PLACEMENT POSTERS STICKERS ON WINDSHIELDS WIPERS ON VEHICLES -AW44,1,remove,ILLEGAL USE OF HYDRANT S -AW51,1,remove,FAILED TO INSTALL A BACKFLOW PREVENTER -AW55,1,remove,FAILED TO RETURN METER PERMIT -AX25,1,remove,OPEN CONTAINER CONSUMPTION OF ALCOHOL ON STREETS -AX26,1,remove,BUSINESS UTILIZING MOTORIZED SCOOTER ALLOWING EMPLOYEE TO OPERATE 1ST -AZ98,1,remove,"UNSPECIFIED LAW, CODE OR REGULATION" -AZ99,1,remove,"UNCODED LAW, RULE, OR REGULATION" -NA,1,remove,NA +charge_1_code,n,relevant_charge,charge_1_code_description +AS18,3,storage receptacles,"STORAGE OF RECEPTACLES NON-COLLECTION DAY , STORAGE OF RECEPTACLES 1ST OCCURRENCE , STORAGE OF RECEPTACLES" +AD09,2,remove,"OBSTRUCTION OF STREET W CONSTRUCTION MATERIALS EQUIPMENT W O PERMIT , CONSTRUCTION MATERIALS EQUIPMENT STORED ON STREET W 0 PERMIT" +AR7G,2,FAILURE TO RECYCLE,"FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION(1TO8DWELLING UNITS)" +AS02,2,remove,"POSTING OF SIGN PERMIT , POSTING OF SIGN PERMIT, WASTE REMOVAL" +AS06,2,dirty sidewalk,"DIRTY SIDEWALK , DIRTY SIDEWALK DIRTY AREA" +AS08,2,debris,"DUST OR SUBSTANCES FLYING 1ST OCCURRENCE , DUST OR SUBSTANCES FLYING" +AS09,2,spills,"SPILLAGE FROM A RECEPTACLE 1ST OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE" +AS13,2,illegal dumping,"ILLEGAL DUMPING OPERATOR OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OPERATOR OF VEHICLE - 1ST AND 2ND OFFENSE" +AS14,2,illegal dumping,"ILLEGAL DUMPING OWNER OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OWNER OF VEHICLE 1ST AND 2ND OFFENSE" +AS15,2,illegal dumping,"ILLEGAL DUMPING CITIZEN COMPLAINANT - 1ST OFFENSE , ILLEGAL DUMPING CITIZEN COMPLAINT - 1ST AND 2ND OFFENSE" +AS16,2,illegal dumping,"IMPROPER DISPOSAL 1ST OCCURRENCE , IMPROPER DISPOSAL 1ST OFFENSE" +AS19,2,debris,"LOOSE RUBBISH 1ST OCCURRENCE , LOOSE RUBBISH" +AS20,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL DSNY LITTER BASKET 1ST OFFENSE , IMPROPER USE OF DSNY LITTER BASKET" +AS37,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE" +AS39,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE" +AS9A,2,spills,"SPILLAGE FROM A RECEPTACLE 2ND OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, SECOND OFFENSE" +AS9B,2,spills,"SPILLAGE FROM A RECEPTACLE 3RD OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, THIRD OFFENSE" +ASBG,2,not related,"POSSESS SELL OFFER POLYSTYRENE SINGLE SERVICE ARTICLE STORE 1ST , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES STORE 1ST" +ASP1,2,storage receptacles,"UNCOVERED RECEPTACLES 1ST OCCURRENCE , UNCOVERED RECEPTACLES 1ST OFFENSE" +ASP4,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL--BEDDING 1ST OCCURRENCE , IMPROPER DISPOSAL BEDDING 1ST OFFENSE" +ASP7,2,storage receptacles,"IMPROPER RECEPTACLES 1ST OCCURRENCE , IMPROPER RECEPTACLES 1ST OFFENSE" +ASR7,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS HOTEL 100 OR MORE ROOMS 1ST , FAILURE TO RECYCLE ORGANICS HOTEL 1ST" +ASU4,2,FAILURE TO RECYCLE,"ORGANICS MIXED WITH NON-ORGANICS MATERIALS 1ST , ORGANICS MIXED WITH NON-ORGANIC MATERIALS 1ST" +ASX1,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE AT LEAST 7,000 SQUARE FEET 1ST , FAIL TO RECYCLE ORGANICS FSE AT LEAST 15,000 SQ FT 1ST OFFENSE" +ASX4,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE CHAIN 2 OR MORE 1ST , FAIL TO RECYCLE ORGANICS FSE CHAIN 100 OR MORE 1ST OFFENSE" +ASX7,2,FAILURE TO RECYCLE,"FAIL TO RECYCLE ORGANICS, FOOD STORE AT LEAST 10,000 SQFT CHAIN 1ST , FAIL TO RECYCLE ORGANICS RETAIL FOOD STORE AT LEAST 25000 SQ FT 1ST" +ASZ4,2,storage receptacles,"INSUFFICIENT RECEPTACLES 1ST OCCURRENCE , INSUFFICIENT RECEPTACLES 1ST OFFENSE" +ASZ7,2,storage receptacles,"BROKEN RECEPTACLES 1ST OCCURRENCE , BROKEN RECEPTACLES 1ST OFFENSE" +A190,1,remove,PERFORMING PLUMBING WORK WITHOUT A MASTER PLUMBER LICENSE +A1D1,1,remove,UNLAWFUL ADVERTISEMENT FOR CERTAIN OCCUPANCIES - 3RD OFFENSE OR MORE +AA03,1,remove,"FAILURE TO COMPLY WITH DIRECTIVES OF POLICE,PARK SUPERVISOR,LIFEGUARD" +AA04,1,remove,FAILURE TO COMPLY WITH DIRECTIONS PROHIBITIONS ON SIGNS +AA06,1,remove,"CUTTING, REMOVAL, OR DESTRUCTION OF A TREE" +AA13,1,illegal dumping,UNLAWFUL DUMPING +AA35,1,remove,UNAUTHORIZED CONSUMPTION POSSESSION OF ALCOHOLIC BEVERAGE +AA75,1,remove,SMOKING IN A PARK OR ON OTHER PROPERTY UNDER JURISDICTION OF DEPT. +AB01,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF LEAD ACID BATTERY +AD06,1,improper signage,IDENTIFYING SIGNS IMPROPERLY DISPLAYED OR MISSING +AD07,1,remove,CONSTRUCTING VAULT W O LICENSE OR REVOCABLE CONSENT +AD18,1,remove,CANOPY WITHOUT PERMIT +AD19,1,remove,POST POLE FLAGPOLE SOCKET LAMPPOST W O PERMIT CONSENT +AD30,1,remove,FAILURE TO COMPLY WITH THE TERMS AND CONDITIONS OF DOT PERMITS +AD6L,1,remove,"RIGHT OF WAY - FAILURE TO YIELD, PHYSICAL INJURY" +AD6M,1,remove,LEAVING THE SCENE - PROPERTY DAMAGE FIRST OFFENSE +ADC9,1,storage receptacles,FAIL TO HAVE PROPER ST PROTECTION UNDER COMMERCIAL REFUSE CONTAINER +ADF3,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 1ST OFFENSE +ADF4,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 2ND+ OFFENSE +ADP4,1,remove,FAILURE TO DISPLAY INTERCITY BUS PERMIT- 2ND SUBSEQUENT OFFENSE +AE24,1,remove,EMISSION OF ODOROUS AIR CONTAMINANT 1ST OFF +AE27,1,remove,EMISSION OF AIR CONTAMINANT FROM VEHICLE 1ST OFFENSE +AE38,1,remove,AIR CONTAMINANT FROM OPEN FIRE +AE51,1,remove,IDLING OF MOTOR VEHICLE ENGINE MORE THAN THREE MINUTES 1ST OFF +AF25,1,remove,NA +AF99,1,remove,NYC HEALTH CODE PROVISION - MISCELLANEOUS +AFJ3,1,remove,MFVU UNSECURED WHEN LEFT UNATTENDED FOR MORE THAN ONE-HALF HOUR +AFK2,1,spills,SOLID AND LIQUID WASTE CAUSED BY THE OPERATION OF THE UNIT NOT COLLECT +AFW3,1,remove,OPERATING A MFVU UNIT WITHOUT A PERMIT IN ANY PUBLIC SPACE +AFW5,1,remove,OPERATING A MFVU IN ANY PUBLIC SPACE WITHOUT A LICENSE +AFY3,1,remove,ITEMS NOT IN OR UNDER CART EXCEPT WASTE CONTAINER +AFY4,1,remove,VENDING AT TIME OR PLACE PROHIBITED +AFY6,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT., OR NOT AT CURB" +AFY8,1,remove,PUSHCART TOUCHING OR LEANING AGAINST BUILDING +AFY9,1,remove,"VENDING IN BUS STOP, SIDEWALK NEXT TO A HOSPITAL OR HEALTH FACILITY" +AFZ5,1,spills,"FAILURE TO REMOVE AND CLEAN AREA OF ANY WASTE, DEBRIS OR FOOD SPILLAGE" +AG01,1,remove,UNLICENSED GENERAL VENDOR INCLUDING CONT D UNLICENSED ACTIVITY 1ST +AG11,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT. WIDE, OR NOT AT CURB 1ST" +AG12,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST +AG14,1,remove,STAND GOODS AGAINST DISPLAY WINDOW WITHIN 20 FT. OF EXITS 1ST +AG15,1,remove,VENDING IN PROHIBITED AREA OF SIDEWALK OR STREET 1ST +AG21,1,remove,VEND AT TIMES PLACES RESTRICTED BY VENDOR REVIEW PANEL 1ST +AG23,1,remove,"VEND ON VENT, CELLAR DOOR, MANHOLE, OR SUBWAY GRATING 1ST" +AG25,1,remove,VENDING FROM A PARKED MOTOR VEHICLE 1ST +AG26,1,remove,ILLEGAL USE OF ELECTRICAL OIL GAS POWERED DEVICE +AG27,1,remove,VENDING TOO CLOSE TO PROHIBITED PLACES 1ST +AGE3,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST +AGE7,1,remove,VENDING WITHIN 20 FT FROM ENTRANCE EXIT OF BUILDING 1ST +AGF6,1,remove,VEND W IN 5FT OF BUS SHELTER NEWSSTAND PUBLIC PHONE DISABLE RAMP 1ST +AGI7,1,remove,VENDING ON SIDEWALK LESS THAN 10 FEET MIDTOWN 1ST +AH2I,1,remove,TRANSFER OF FOOD TO UNLICENSED VENDOR +AH30,1,IMPROPER DISPOSAL,FAILURE TO REMOVE LOCKING DEVICE FROM DISCARDED REFRIGERATOR +AH3G,1,IMPROPER DISPOSAL,IMPROPER GARBAGE COLLECTION AND OR DISPOSAL +AH3I,1,spills,FAILURE TO PROPERLY REMOVE AND OR CLEAN DEBRIS AND CONSUMER LITTER +AH50,1,rats,RAT OR OTHER PEST INFESTATION +AH61,1,remove,CONTROL OF DOGS AND OTHER ANIMALS TO PREVENT NUISANCE +AH62,1,remove,DOGS TO BE RESTRAINED +AHG3,1,remove,"DOG, CAT NOT TIMELY EUTHANIZED" +AHH8,1,remove,FAILURE TO TAKE REASONABLE PRECAUTIONS TO PROTECT HEALTH AND SAFETY +AHJ5,1,remove,FAIL TO COMPLY WITH EXEC ORDER 228 AS EXTENDED 1ST OFFENSE +AK09,1,spills,FAILURE TO REMOVE CANINE WASTE +AN62,1,remove,UNAUTHORIZED USE OF MOTOR VEHICLE CLAXON +AR01,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 9+ DWELLING UNITS +AR02,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 9+ DWELLING UNITS +AR03,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9+ DWELLING UNITS +AR04,1,storage receptacles,NO ACCESSABLE RECYCLING STORAGE AREA 9+ DWELLING UNITS +AR05,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 9+ DWELLING UNITS +AR06,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINERS 9+ DWELLING UNITS +AR07,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS +AR08,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS +AR09,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 9+ DWELLING UNITS +AR10,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS +AR11,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION WITH NON-RECYC 9+ DWELLING UNITS +AR12,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER NINE OR MORE DWLNG UNITS +AR14,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELLING UNIT +AR15,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS +AR17,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 9+ DWELLING UNITS +AR18,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS +AR19,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS +AR1A,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 9+ DWELLING UNITS +AR1E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1 TO 8 DWELLING UNITS +AR1F,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 4 TO 8 DWELLING UNITS +AR1G,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 1 TO 8 DWELLING UNITS +AR1H,1,IMPROPER DISPOSAL,NON-RECYC LEFT IN RECYC CONTAINER FOR COLLECTION 1TO8 DWELLING UNITS +AR1J,1,storage receptacles,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYC 1 TO 8 DWELLING UNITS +AR20,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS +AR21,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNTS +AR22,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR25,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELNG UNITS +AR26,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS +AR2E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1-8 DWELLING UNITS +AR31,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS +AR32,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS +AR33,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR34,1,RECYCLING PROGRAM,FAILURE TO ESTABLISH RECYCLING PROGRAM +AR35,1,RECYCLING PROGRAM,FAILURE TO NOTIFY EMPLOYEES ABOUT RECYCLING PROGRAM +AR36,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED +AR41,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE DESIGNATED RECYCLABLES +AR44,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED +AR46,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE NON-FOOD BEVERAGE RECYCLABLES +AR48,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYCLABLES 9+ DWELLING UNITS +AR4E,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 1 TO 8 DWELLING UNITS +AR4F,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 4 TO 8 DWELLING UNITS +AR4G,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPES MAGAZINES CARDBOARD 1 TO 8 DWELLING UNITS +AR4H,1,IMPROPER DISPOSAL,RECYC PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS +AR51,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION +AR6B,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR6H,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS +AR70,1,RECYCLING PROGRAM,NO WRITTEN RECYCLING NOTICE TO TENANTS EMPLOYEES +AR76,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SEPARATION OF PAPER TRANSFER STATIONS +AR79,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL-RECYCLABLE OR COMMINGLED MATERIALS TRANSFER STN-2D +AR7C,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION 4TH OR SUBSEQUENT VIOL IN 6MON +AR7E,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 4 TO 8 DWELLING UNITS +AR7F,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 1 TO 8 DWELLING UNITS +AR7H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS +AR8G,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS +AR9H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS +ARA1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST +ARA7,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SOURCE SEPARATION 1ST +ARB1,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SINGLE STREAM 1ST +ARB4,1,IMPROPER DISPOSAL,MIXED YARD WASTE 1ST +ARC1,1,IMPROPER DISPOSAL,MIXED CONSTRUCTION AND DEMOLITION DEBRIS 1ST +ARC4,1,IMPROPER DISPOSAL,RECYCLABLES MIXED WITH OTHER RECYCLABLES SOURCE SEPARATION 1ST +ARC7,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SOURCE SEP 1ST +ARD1,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SINGLE STR 1ST +ARD7,1,IMPROPER DISPOSAL,SEPARATED RECYCLABLE MATERIALS NOT MAINTAINED PRIOR TO COLLECTION 1ST +ARE1,1,RECYCLING PROGRAM,FAIL NOTIFY TEN OCC EMPLOYEES ABT RECY REQ IN WRITING SOURCE SEP 1ST +ARE7,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SOURCE SEP 1ST +ARF1,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SINGLE ST 1ST +ARF4,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SOURCE SEP 1ST +ARF7,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SINGLE STREAM 1ST +ARG1,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SOURCE SEP 1ST +ARG4,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SINGLE STREAM 1ST +ARG7,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST +ARH1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SINGLE STREAM 1ST +ARH4,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SOURCE SEP 1ST +ARH7,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SINGLE STREAM 1ST +ARI1,1,improper signage,FAILURE TO POST SIGNAGE SOURCE SEPARATION 1ST +ARI4,1,improper signage,FAILURE TO POST SIGNAGE SINGLE STREAM 1ST +AS01,1,IMPROPER DISPOSAL,REMOVAL OF COMMERCIAL WASTE +AS03,1,littering,LITTERING 1ST OFFENSE +AS04,1,littering,SWEEP-OUT 1ST OFFENSE +AS05,1,littering,THROW-OUT 1ST OFFENSE +AS07,1,obstruction,SIDEWALK OBSTRUCTION +AS10,1,hazards,NOXIOUS LIQUIDS +AS11,1,remove,INTERFERING WITH D.S. EMPLOYEE +AS12,1,remove,UNAUTHORIZED DISTURBANCE OR REMOVAL OF RECYCLABLE MATERIALS-NO VEHICLE +AS17,1,IMPROPER DISPOSAL,SEPARATION AND WEIGHT +AS1Q,1,illegal dumping,ILLEGAL DUMPING OWNER OF VEHICLE 2ND OFFENSE +AS21,1,remove,"SNOW,ICE DIRT ON SIDEWALKS" +AS22,1,debris,"EARTH, ROCKS AND RUBBISH" +AS23,1,obstruction,STREET OBSTRUCTION +AS24,1,remove,DISABLED VEHICLE +AS26,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET +AS27,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF INFECTIOUS MEDICAL WASTE +AS28,1,hazards,IMPROPER TRANSPORT STORAGE DISPOSAL OF ASBESTOS WASTE +AS29,1,hazards,HAZARDOUS TRANSPORTATION STORAGE DISPOSAL OF ASBESTOS WASTE +AS2A,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL DSNY LITTER BASKET - 2ND OFFENSE +AS2C,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 2ND OFFENSE" +AS2D,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 3RD OFFENSE" +AS2M,1,remove,RECEIVED RECYCLABLES FOR STORAGE COLLECTION ETC. BY UNAUTH PERSONS-2ND +AS2P,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL - 1ST OFFENSE +AS30,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE +AS33,1,remove,ILLEGAL PLACEMENT OF STICKERS OR DECALS ON PUBLIC OR PRIVATE PROPERTY +AS36,1,remove,OPERATING TRANSFER STATION W O PERMIT NONPUTRESCIBLE WASTE +AS38,1,remove,OPERATING TRANSFER STATION W O PERMIT PUTRESCIBLE WASTE +AS3C,1,littering,LITTERING FROM A MOTOR VEHICLE 1ST OFFENSE +AS3F,1,spills,SPILLAGE FROM A MOTOR VEHICLE 1ST OFFENSE +AS40,1,remove,OPERATING DUMP FILL OPERATION W O PERMIT +AS41,1,remove,COMMISSIONER S RULES RE: FILL DUMP OPERATIONS +AS43,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF REGULATED HOUSEHOLD WASTE +AS44,1,remove,VEHICLE BODY - IMPROPER COLOR +AS50,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:NOT WET +AS51,1,hazards,"PRESENT FOR STORAGE ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS54,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:MIXED W OTH.WASTE +AS55,1,hazards,STORAGE OF ASBESTOS WASTE:UNCONTAINED UNSEALED +AS56,1,hazards,"STORAGE OF ASBESTOS WASTE:NOT WET,NOT 6 MIL" +AS57,1,hazards,STORAGE OF ASBESTOS WASTE:NO WARNING LABELS +AS58,1,hazards,STORAGE OF ASBESTOS WASTE:NO 24HR INSPECTION +AS59,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE SPARE LEAK-TIGHT CONTAINERS +AS60,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE WATER SUPPLY +AS61,1,hazards,STORAGE OF ASBESTOS WASTE:MIXED W OTHER WASTE +AS63,1,hazards,STORAGE OF ASBESTOS WASTE:50CUBIC YDS NO AUTHORIZATION +AS65,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS66,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:NOT WET,NOT 6 MIL" +AS69,1,hazards,PRESENT FOR TRANSPORT ASBESTOS WASTE:MIXED WITH OTHER WASTE +AS6B,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL 3RD OFFENSE +AS6M,1,dirty sidewalk,DIRTY AREA +AS6V,1,dirty sidewalk,DIRTY SIDEWALK DIRTY AREA VACANT LOT +AS72,1,hazards,"TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS74,1,hazards,TRANSPORT ASBESTOS WASTE:NO WARNING LABEL +AS8C,1,storage receptacles,STORAGE OF RECEPTACLES - 2ND OFFENSE +AS8D,1,storage receptacles,STORAGE OF RECEPTACLES - 3RD OFFENSE +AS8V,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET VACANT LOT +AS92,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS +AS94,1,remove,FAILURE TO FILE DEC MEDICAL WASTE PLANS +AS95,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS +AS96,1,SANITATION VIOLATION,SANITATION VIOLATION +AS97,1,dirty sidewalk,"DIRTY SIDEWALK,FAIL TO CLEAN 18 INTO STREET,SIDEWALK OBSTRUCTION 2ND" +AS98,1,SANITATION VIOLATION,SANITATION PROVISION - UNSPECIFIED SECTION +AS9C,1,debris,LOOSE RUBBISH - 2ND OFFENSE +AS9D,1,debris,LOOSE RUBBISH - 3RD OFFENSE +AS9I,1,remove,PUBLIC URINATION 1ST OFFENSE +ASA9,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 6PM +ASAC,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 8PM WITHOUT A RECEPTACLE +ASAF,1,storage receptacles,STORAGE OF RECEPTACLE PLACED OUT PRIOR TO 8PM IN UNCOVERED RECEPTACLE +ASAI,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT PRIOR TO 4AM +ASAL,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT AFTER 7AM +ASAO,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO 8PM W O A RECEPTACLE +ASAR,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO ONE HOUR OF CLOSING +ASAU,1,storage receptacles,STORAGE OF RECEPTACLES COM FAILURE TO REMOVE RECEPTACLES +ASAX,1,storage receptacles,STORAGE OF RECEPTACLES FAILURE TO REMOVE RECEPTACLES +ASBA,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES FSE 1ST +ASBD,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERV ARTICLES MOBILE FOOD 1ST +ASC1,1,improper signage,FAIL DISPLAY OWNER INFORMATION ON PUBLICLY ACCESSIBLE COLLECTION BIN +ASC3,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN +ASC4,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN 2ND OFF +ASC7,1,storage receptacles,FAIL MAINTAIN COLLECTION BIN IN CLEAN NEAT CONDITION-PROPERTY OWNER +ASCB,1,RECYCLING PROGRAM,FAILURE TO REGISTER PUBLICLY ACCESSIBLE COLLECTION BIN WITH DSNY +ASCF,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF ELECTRONIC WASTE +ASDM,1,remove,IMPROPER RECEIPT OF A DEPARTMENT MARKED ITEM 1ST OFFENSE +ASDU,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM RPF 1ST +ASDX,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM SMF 1ST +ASF3,1,spills,SPILLAGE CONDITION FROM OVERFLOWING RECEPTACLE +ASF4,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY BAG AND OR BUNDLE REFUSE AND RECYCLABLES +ASF5,1,IMPROPER DISPOSAL,FAILURE TO PLACE BAGGED AND OR BUNDLED REFUSE AND RECY.AT PREDETER.LOC +ASGD,1,IMPROPER DISPOSAL,PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW W O CUSTOMER REQ +ASGJ,1,IMPROPER DISPOSAL,FAIL TO PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW ON REQUEST +ASGP,1,improper signage,FAIL TO DISPLAY REQUIRED SIGNAGE ABOUT PLASTIC STRAW AVAILABILITY +ASH9,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE +ASJ5,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OPERATOR -1ST +ASK4,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -1ST +ASK5,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -2ND +ASK6,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -3RD +ASK7,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OPERATOR -1ST +ASL4,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR - 1ST +ASL5,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR -2ND +ASL6,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OWNER -1ST +ASL9,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OWNER -1ST +ASM3,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OWNER -1ST +ASN6,1,remove,REMOVAL TRANSPORT OF COMMERICAL RECYCLABLE MATERIAL OWNER -1ST +ASP2,1,storage receptacles,UNCOVERED RECEPTACLES 2ND OFFENSE +ASP3,1,storage receptacles,UNCOVERED RECEPTACLES 3RD OFFENSE +ASP5,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 2ND OFFENSE +ASP6,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 3RD OFFENSE +ASP8,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 2ND OFFENSE +ASP9,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 3RD OFFENSE +ASQ5,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OPERATOR +ASQ6,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OWNER +ASR4,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS STADIUM 1ST +ASR8,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 2ND +ASR9,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 3RD+ +ASS1,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 1ST" +ASS2,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 2ND" +ASS3,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 3RD+" +ASS4,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 1ST" +ASS5,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 2ND" +ASS6,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 3RD+" +AST7,1,remove,FAIL NOTIFY DSNY REGARDING ONSITE ORGANIC WASTE PROCESSING EQUIPMENT 1 +ASU1,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 1ST +ASU2,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 2ND +ASU3,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 3RD+ +ASU7,1,IMPROPER DISPOSAL,ORGANICS PLACED OUT FOR COLLECTION IN CONTAINER W O LATCHING DEVICE 1 +ASV1,1,IMPROPER DISPOSAL,ORGANICS IN STORAGE AREA PLACED IN A CONTAINER W O LATCHING DEVICE 1ST +ASV4,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 1ST +ASV5,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 2ND +ASV6,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 3RD+ +ASW4,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 1ST +ASW5,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 2ND +ASW6,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 3RD+ +ASY0,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT-9 OR MORE DWELLING UNITS 1 +ASY4,1,IMPROPER DISPOSAL,IMPROPER DISPERSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST +ASY7,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST +ASZ1,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT- 1 TO 8 DWELLING UNITS 1ST +ASZ6,1,storage receptacles,INSUFFICIENT RECEPTACLES 3RD OFFENSE +ASZ9,1,storage receptacles,BROKEN RECEPTACLES 3RD OFFENSE +AT12,1,dirty sidewalk,FAILURE TO PROVIDE WORKING PUBLIC PAY TELEPHONE OPERATOR SERVICES +AT13,1,dirty sidewalk,FAILED TO CLEAN MAINTAIN PUBLIC PAY TELEPHONE AS PER REQMNTS OF SUBSEC +AV01,1,adandoned vehicle,ABANDONING VEHICLE +AV02,1,remove,ILLEGAL PLACEMENT POSTERS STICKERS ON WINDSHIELDS WIPERS ON VEHICLES +AW44,1,remove,ILLEGAL USE OF HYDRANT S +AW51,1,remove,FAILED TO INSTALL A BACKFLOW PREVENTER +AW55,1,remove,FAILED TO RETURN METER PERMIT +AX25,1,remove,OPEN CONTAINER CONSUMPTION OF ALCOHOL ON STREETS +AX26,1,remove,BUSINESS UTILIZING MOTORIZED SCOOTER ALLOWING EMPLOYEE TO OPERATE 1ST +AZ98,1,remove,"UNSPECIFIED LAW, CODE OR REGULATION" +AZ99,1,remove,"UNCODED LAW, RULE, OR REGULATION" +NA,1,remove,NA \ No newline at end of file From 574e87db0de712ec0794742754351c653d24da2f Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 10:11:46 -0400 Subject: [PATCH 05/12] cleaning up file order --- code/dirty_sidewalk_oath/01_oath_charges.R | 111 ++---- .../02_oath_eda_cleaning.R | 42 +++ ...eda_cleaning.R => 03_oath_cats_api_pull.R} | 26 +- ...2_oath_summaries.R => 04_oath_summaries.R} | 0 .../{03_oath_visuals.R => 05_oath_visuals.R} | 0 ...s_grouped.csv => oath_charges_grouped.csv} | 0 .../oath_codes/charges_grouped_table.csv | Bin 0 -> 8862 bytes .../charges_grouped_table_excel.csv | 19 ++ data/output/{ => oath_codes}/oath_charges.csv | 0 .../oath_codes/oath_charges_grouped.csv | 317 ++++++++++++++++++ 10 files changed, 426 insertions(+), 89 deletions(-) create mode 100644 code/dirty_sidewalk_oath/02_oath_eda_cleaning.R rename code/dirty_sidewalk_oath/{01_oath_eda_cleaning.R => 03_oath_cats_api_pull.R} (91%) rename code/dirty_sidewalk_oath/{02_oath_summaries.R => 04_oath_summaries.R} (100%) rename code/dirty_sidewalk_oath/{03_oath_visuals.R => 05_oath_visuals.R} (100%) rename data/output/{charges_grouped.csv => oath_charges_grouped.csv} (100%) create mode 100644 data/output/oath_codes/charges_grouped_table.csv create mode 100644 data/output/oath_codes/charges_grouped_table_excel.csv rename data/output/{ => oath_codes}/oath_charges.csv (100%) create mode 100644 data/output/oath_codes/oath_charges_grouped.csv diff --git a/code/dirty_sidewalk_oath/01_oath_charges.R b/code/dirty_sidewalk_oath/01_oath_charges.R index 6684700..6229823 100644 --- a/code/dirty_sidewalk_oath/01_oath_charges.R +++ b/code/dirty_sidewalk_oath/01_oath_charges.R @@ -1,101 +1,44 @@ source('code/00_load_dependencies.R') -# RUN ONLY IF ITS THE FIRST TIME --------------------- +########################################################### +# RUN THIS PART ONLY IF ITS THE FIRST TIME # RUN TO OBTAIN SANITATION RELATED CODES - +########################################################## # read in OATH data # https://data.cityofnewyork.us/City-Government/OATH-Hearings-Division-Case-Status/jz4z-kudi -# sanitation_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=issuing_agency%20like%20%27%25SANITATION%25%27%20and%20violation_date%20%3E=%20%272018-01-01%27") - -# read in only relevant columns to keep dataset smaller -# raw_oath_bit <- vroom(sanitation_url, col_select = c(1:15,23:24,34:42)) - - -# charge_summary <- raw_oath_bit %>% -# group_by(charge_1_code) %>% -# summarise(list = list(unique(charge_1_code_description)), -# n = lengths(list), -# charge_1_code_description = paste0(unlist(list( -# unique(charge_1_code_description))),collapse = " , ")) %>% -# as.data.frame() -# -# write_csv(charge_summary, "data/output/charges.csv") - -# manually grouped charge codes into categories in excel ------- -# cats <- read_csv("data/output/charges.csv") -# write_csv(cats, "data/output/charges_grouped.csv") - +# OATH Violations where Sanitation is the issuing agency from 2018 to Present +sanitation_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=issuing_agency%20like%20%27%25SANITATION%25%27%20and%20violation_date%20%3E=%20%272018-01-01%27") +# read in only relevant columns to keep the dataset small +raw_oath_bit <- vroom(sanitation_url, + col_select = c(1:15,23:24,34:42)) -# combine codes into groupings -------------- -cats <- read_csv("data/output/charges_grouped.csv") -cats_r <- cats %>% - group_by(relevant_charge) %>% - summarise(list_code = list(unique(charge_1_code)), - n_code = lengths(list_code), - charge_1_code = paste0(unlist(list(unique(charge_1_code))),collapse = " , "), - list_desc = list(unique(charge_1_code_description)), - n_desc = sum(n), +charge_summary <- raw_oath_bit %>% + group_by(charge_1_code) %>% + summarise(list = list(unique(charge_1_code_description)), + n = lengths(list), charge_1_code_description = paste0(unlist(list( - unique(charge_1_code_description))),collapse = " , ")) %>% as.data.frame() + unique(charge_1_code_description))),collapse = " , ")) %>% + as.data.frame() +write_csv(charge_summary, "data/output/oath_charges.csv") -# read in categories to filter data -cats <- read_csv("data/output/charges_grouped_table.csv") +# I manually grouped charge codes into categories in excel ------- +# I read in the edited oath_charges csv & saved as oath_charges_grouped +cats <- read_csv("data/output/oath_charges.csv") +write_csv(cats, "data/output/oath_charges_grouped.csv") -# unnest grouped code for matching later -cats_unnested <- cats %>% - mutate(list_code = map(list_code, ~tibble(list_code = .))) %>% - unnest(list_code) -# add categorization to main oath dataset -# raw_oath_cats <- raw_oath %>% left_join(cats_unnested, by=c('charge_1_code'='list_code')) -# too big to save, dont -#saveRDS(raw_oath_cats, "data/output/oath_2018-present_categories.csv") -# quick summary/eda look at the dataset -# options(scipen = 999) -# skimr::skim(raw_oath_cats) -# t <- sort(table(raw_oath_cats$relevant_charge), decreasing = T) -# prop.table(t)*100 - -# may be worth pulling oath violations by identified charge codes in case issuing agency is mislabeled -# - dirty sidewalk makes about 60% of sanitation violations, -# - rats, abandoned vehicle make less than 0.001% -# - illegal dumping makes 0.3% -# -# - drop violation_location_floor, violation_description 100% missing -# - there are no dup oaths 100% unique -# - 5% of entries missing bbls info -# - 1% missing address info -# - 2% missing zipcode - - -prep_oath <- raw_oath_cats %>% - select(!c(violation_location_floor, violation_description)) %>% # drop uneeded columns - filter(!relevant_charge %in% c('remove', 'not related', - 'obstruction', 'NONPUTRESCIBLE WASTE', - 'RECYCLING PROGRAM', 'SANITATION VIOLATION')) %>% # remove unrelated charges - mutate(block = str_pad(violation_location_block_no, 5, pad = "0"), - lot = str_pad(violation_location_lot_no, 4, pad = "0"), - borough = case_when( - violation_location_borough == "BROOKLYN" ~ 3, - violation_location_borough == "QUEENS" ~ 4, - violation_location_borough == "BRONX" ~ 2, - violation_location_borough == "MANHATTAN" ~ 1, - violation_location_borough == "STATEN IS" ~ 5, - TRUE ~ 0 - ), - bbl = paste0(borough, block, lot)) # create bbl column - -# get lat & lon from pluto matching on bbl - -# check if missing bbls have addresses -missing_bbl <- prep_oath %>% filter(bbl %in% bbl[nchar(bbl)<10]) -skimr::skim(missing_bbl) - -# half have house number and 99% have street number, maybe can get street centriod \ No newline at end of file +# unused code --------- +# # read in categories to filter data +# cats <- read_csv("data/output/charges_grouped_table.csv") +# +# # unnest grouped code for matching later +# cats_unnested <- cats %>% +# mutate(list_code = map(list_code, ~tibble(list_code = .))) %>% +# unnest(list_code) \ No newline at end of file diff --git a/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R b/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R new file mode 100644 index 0000000..785cd34 --- /dev/null +++ b/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R @@ -0,0 +1,42 @@ +# quick summary/eda look at the dataset ------------- +# options(scipen = 999) +# skimr::skim(raw_oath_cats) +# t <- sort(table(raw_oath_cats$relevant_charge), decreasing = T) +# prop.table(t)*100 + +# may be worth pulling oath violations by identified charge codes in case issuing agency is mislabeled +# - dirty sidewalk makes about 60% of sanitation violations, +# - rats, abandoned vehicle make less than 0.001% +# - illegal dumping makes 0.3% +# +# - drop violation_location_floor, violation_description 100% missing +# - there are no dup oaths 100% unique +# - 5% of entries missing bbls info +# - 1% missing address info +# - 2% missing zipcode + + +prep_oath <- raw_oath_cats %>% + select(!c(violation_location_floor, violation_description)) %>% # drop uneeded columns + filter(!relevant_charge %in% c('remove', 'not related', + 'obstruction', 'NONPUTRESCIBLE WASTE', + 'RECYCLING PROGRAM', 'SANITATION VIOLATION')) %>% # remove unrelated charges + mutate(block = str_pad(violation_location_block_no, 5, pad = "0"), + lot = str_pad(violation_location_lot_no, 4, pad = "0"), + borough = case_when( + violation_location_borough == "BROOKLYN" ~ 3, + violation_location_borough == "QUEENS" ~ 4, + violation_location_borough == "BRONX" ~ 2, + violation_location_borough == "MANHATTAN" ~ 1, + violation_location_borough == "STATEN IS" ~ 5, + TRUE ~ 0 + ), + bbl = paste0(borough, block, lot)) # create bbl column + +# get lat & lon from pluto matching on bbl + +# check if missing bbls have addresses +missing_bbl <- prep_oath %>% filter(bbl %in% bbl[nchar(bbl)<10]) +skimr::skim(missing_bbl) + +# half have house number and 99% have street number, maybe can get street centriod diff --git a/code/dirty_sidewalk_oath/01_oath_eda_cleaning.R b/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R similarity index 91% rename from code/dirty_sidewalk_oath/01_oath_eda_cleaning.R rename to code/dirty_sidewalk_oath/03_oath_cats_api_pull.R index 2822892..5e56b2f 100644 --- a/code/dirty_sidewalk_oath/01_oath_eda_cleaning.R +++ b/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R @@ -1,6 +1,22 @@ -# read in each category's codes to get all OATH violations +############################################################ +# Pull from API each category's codes to get all OATH violations, not just issued by Sanitation +##################################################### + + + +# combine codes into groupings -------------- +cats <- read_csv("data/output/oath_charges_grouped.csv") +cats_r <- cats %>% + group_by(relevant_charge) %>% + summarise(list_code = list(unique(charge_1_code)), + n_code = lengths(list_code), + charge_1_code = paste0(unlist(list(unique(charge_1_code))),collapse = " , "), + list_desc = list(unique(charge_1_code_description)), + n_desc = sum(n), + charge_1_code_description = paste0(unlist(list( + unique(charge_1_code_description))),collapse = " , ")) %>% as.data.frame() + -source('code/01_oath_charges.R') # side: improper use of dsny litter basket ------ @@ -66,7 +82,7 @@ rodent_clean <- rodent %>% # 4: storage receptacles & improper signage --------- storage_codes <- cats_r$charge_1_code[which( - cats_r$relevant_charge %in% c('storage receptacles', 'improper signage'))] + cats_r$relevant_charge %in% c('storage receptacles', 'improper signage'))] paste0(unlist(strsplit(storage_codes, " , ")), collapse = "' , '") storage_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27AD06%27%20,%20%27AR03%27%20,%20%27AR14%27%20,%20%27AR25%27%20,%20%27AR36%27%20,%20%27AR44%27%20,%20%27AR7E%27%20,%20%27ARE7%27%20,%20%27ARF1%27%20,%20%27ARF4%27%20,%20%27ARF7%27%20,%20%27ARG1%27%20,%20%27ARG4%27%20,%20%27ARH4%27%20,%20%27ARH7%27%20,%20%27ARI1%27%20,%20%27ARI4%27%20,%20%27ASC1%27%20,%20%27ASGP%27%20,%20%27ASU1%27%20,%20%27ASU2%27%20,%20%27ASU3%27%20,%20%27ASV4%27%20,%20%27ASV5%27%20,%20%27ASV6%27%20,%20%27ASW4%27%20,%20%27ASW5%27%20,%20%27ASW6%27%20,%20%27AS18%27%20,%20%27ASP1%27%20,%20%27ASP7%27%20,%20%27ASZ4%27%20,%20%27ASZ7%27%20,%20%27ADC9%27%20,%20%27AR04%27%20,%20%27AR05%27%20,%20%27AR07%27%20,%20%27AR15%27%20,%20%27AR18%27%20,%20%27AR1F%27%20,%20%27AR1G%27%20,%20%27AR1J%27%20,%20%27AR26%27%20,%20%27AR4F%27%20,%20%27AS8C%27%20,%20%27AS8D%27%20,%20%27ASA9%27%20,%20%27ASAC%27%20,%20%27ASAF%27%20,%20%27ASAI%27%20,%20%27ASAL%27%20,%20%27ASAO%27%20,%20%27ASAR%27%20,%20%27ASAU%27%20,%20%27ASAX%27%20,%20%27ASC3%27%20,%20%27ASC4%27%20,%20%27ASC7%27%20,%20%27ASP2%27%20,%20%27ASP3%27%20,%20%27ASZ6%27%20,%20%27ASZ9%27)") @@ -104,7 +120,7 @@ abandoned_vec <- vroom(aband_vech_url, col_select = c(1:15,23:24,34:42)) abandoned_vec$category <- rep('abandoning vehicle', nrow(abandoned_vec)) # 8: dirty sidewalk -------------- - + dirty_sidewalk_code <- cats_r$charge_1_code[which( cats_r$relevant_charge %in% c('dirty sidewalk'))] paste0(unlist(strsplit(dirty_sidewalk_code, " , ")), collapse = "' , '") @@ -151,4 +167,4 @@ master_vios_clean <-master_vios %>% filter(date_extract_y_violation_date<=2023) %>% mutate(month = floor_date(as_date(violation_date), "month")) -table(master_vios_clean$date_extract_y_violation_date) +table(master_vios_clean$date_extract_y_violation_date) \ No newline at end of file diff --git a/code/dirty_sidewalk_oath/02_oath_summaries.R b/code/dirty_sidewalk_oath/04_oath_summaries.R similarity index 100% rename from code/dirty_sidewalk_oath/02_oath_summaries.R rename to code/dirty_sidewalk_oath/04_oath_summaries.R diff --git a/code/dirty_sidewalk_oath/03_oath_visuals.R b/code/dirty_sidewalk_oath/05_oath_visuals.R similarity index 100% rename from code/dirty_sidewalk_oath/03_oath_visuals.R rename to code/dirty_sidewalk_oath/05_oath_visuals.R diff --git a/data/output/charges_grouped.csv b/data/output/oath_charges_grouped.csv similarity index 100% rename from data/output/charges_grouped.csv rename to data/output/oath_charges_grouped.csv diff --git a/data/output/oath_codes/charges_grouped_table.csv b/data/output/oath_codes/charges_grouped_table.csv new file mode 100644 index 0000000000000000000000000000000000000000..814ed9a96f1876f98da685bf4901fb3cfaa88c92 GIT binary patch literal 8862 zcmV;PB4OPhiwFP!000001I;~Mk0Zx%D_I|w4O@yW1$JyH6Ir(PvAbB3yWFKDTi2Wq za&Ct+yqO`n+=n=8-A2CnbSLbcZ8$)Xz(5`X1js{vOr8_uDGzzbpU6XiAg_6eQq|Qx zUGvEqaxMFSyKc^ORaaM6*GG3x-Nje-_V&KC_uRAa@AFXIdw!962WRl>oABdB`1=a{ z{l?yNdoN+>2|rlGu9Zes?AmKPaMhbX@MrTln!B;(_{ls08b;xKk;ZOf`{Tg1 zRw79=Aj08?6AOSRv6yL~M1+1SQa=idrh%^RUp>12_|f%!>zCI*d+_nYYxUxV z``16cdGJL2`uhC`H&1_UJ$Z2d`d3#Ef3BXs__M3Oyt=us8@>GC;lt}st{z(VfAQ&O z4<3D@9>4P7)6Z@me|CKX;GaCY`b78e(!&Q&pI+aXhF^X3_^EYs{qXAP^?m*5@lT&T zz4^t*Paiyfq#iwYbM;jB_`=Qgr;mS`k^JN{pg_O-=98z7Z=g58`0@2;Pp@ETPw=sv z0GfzzYLp^Aon-YSJ~j2lv8iA5Se-vN?c<}7srQdeePCeYGu{`&6Q8lV!ILDc-=xp# z16F5vk`q=Rs1R4PV)Y3d9~;L}pVfz~ZpIP!7!P_3w#Q(5jDJ1G zzn)-qm({0?#|&qm;q0^a1NMAicorWs*keZjF{A&O;W=h}IA%1QFg(LCtFtzz4F4$` zT^>+ zW-`lomDo%^JtoT@ljVuS>UWt8vo`Y~tF!eqXX|Of=v=a~tl7F)GaA;c{bf(Br)SNx z0ee3fsrSz_nPYq(7+T{~wl-WwhdnO$F=FEyovHWFWY3mIy;8pkTZai-R|#7u$;f7P zN8$J~!@>IPv-)tx>Pu5UWA%~YOUl-J+8gW@^>4!TMABz;_Zi(MtPNXp$qAdQ6DA8M zjNTJAM<)#b3Bx~R_=gPtkjpH?Kji#icupCAPmk4DUtnWp_d);xJ9o0J%#VP z*)u1ndzpS?xZ^&Py8+jAtj#IYbuL@`9@7tOZN?tg6|BvKwVCodYwxr6KH~w?SILCw zjRkwYVEkP$-YglOCFA9i&C`mtS+O=NZ6}{&vd?fIF}NcJH?T`-UK3#z6^Y z3bIYl?q|;&=1U~Z*7in5PJ2vu3r4SC^a>^)g6SV|dcyiL^f|pVRyQ;_%qMV$0jnEb z;CKU8H#9iR&v5&^Zu)fxreBw>Z;#2YH!}2icTHd3iq~2DHG9r$EFPZcQtj^mES>5nq;QlBJ8Q+p~*6%rg&c=1l)_=g-2dsU-+6Sz!8RJ#R z+T3HX_t^8)^tEJqW5xKkV(V+gZ01Fu*A33g(HX0cpnU0b_@i{zOH5BOx<`!HBjf9N z=Y}Tl()2eSn0Y$qcm~`z)VlLcCZF8TV{$U*ejDTYCDU~_^TnCYjG2y)k9d5-p7(g1 z!+iH1ixYarPmTNB?y@nRv9)u?WKu952-Ze0Sixjl1gsvhdd%ufwgr=Io5`5X?J?uw zoUOGvYk$dP?-FI>YkL%9W327%p&dlOl*(sR{mbh83w!9x0IYha+uWCOh4Y->H2Dq2 z>ejx6VY)09$FjKSQK5dxcMy%sqJJcdfouZdH-S^j_>2nK5<+b%`cw?4pq9xA6>7B4 z{3k}z^3hy2fcO~;2%V{z5DC=jQJ;z-6|z$Zj;Wv~J!;Y;(tAXDPf+1fF{SYkK%W5m z^lm`E29jooZKYB?NJK@U#}?v#i)wW;u^pe7?K1c3{pdQ88@ zk|7X$QlWlP6Ner;^lL)Jl=x1}N{9szPf{VMn9Jgr=7h+Fuu&Es&5%bkG;yf7OOrzn z=R+!Jy5}_A3+iD>-L7di*Mw|M?=H1M`6>o_^3g!AOJp~VZE!-Yp$T;fpFK99BkG>1 z(Pidd;J}G2n)HMw7Gg6hv`RR^aEuyIF`QAcl*JhpBS~aR(v)Vg!*4LgB4FyPPko)x zLy`grrKljDolrL?H0%?CJ0Z9s!3_y+sAh%WhKf9Dc}k->)mr6;7y;36ska_M^(2(g z@9wGQ|BL|+tr`+-f`W*KIIkp}9-fkfyChW}i5f`dZLKE3maE)rh| zLr7NW*Mdf~AS##Ca!Dgt(zsXja77PST04FlBMK68YH&mi228b&Cq`tBl=w5xO-I1b z{u4$AghbK-aS7^2P(Om$CrC!Y>&L<&?BMHDA(1(xy1==oLW&o-^i)V>4(U4Z z;i-^Vz;l-c36V!L1FpI(?n-cQ(5awzYx+e?4V-Z*&Zv-Z6Ve5fo+|oO98)2&Oh^xc ze@%sYIHW>S2EH^E^vk1nzWfD#vn)u2!CRKaL;`@1EQ`AmXGrgoo>EWri+WFp6W{<- zLAs|;E0g${kWNlWR1;zrc(+s#7Ls3ZXQ@!XNI*uCPHjwSjRrN6>Kr^nSzJmC;16PPu38S1s@KcmztHiMkLJX}xl-6PvP+V0n=BZu zgqT)be56b){pu-WOxCSO#<3@jN8DH1h5A0DIX{xrO$H{+=Bm(Rop@w&shJPLmQVf~ptAmK_CwYs>SW zUK*V_D>snGM2pZ*6X>Ednzzen-cdCDq? zdP$lmqYg4jRX2Z{y_xwJu4AqIbZUiBcwnB3)Qx=+XzUvR^6gbGf89iqm$+bHt-ys< zVV&+D!KjjZ3ot&G=ej8y(`M-2i2}Dg0*pM*4HLZ|_t_>g?5XfWtDkYTMc)L%r=r~N z-_>CN+)?CMNs4f06h~?lFbIXdnU2^^@l_SB{z;A@iXgkYz>nUu@`9>RIgO}-Tg26J z9cu5WX|9u0IR0YBIP(3?i>4oH2l5A-8xLaVy$WWRMF{6?Cc=d$>=YaIPpVeHZJ{z_ zaCSw-MmXMxYc-7m7qqz>Tm7Sk0q%;)jBhimnlZ`Yk(s!oP%cWh2`ncG*H+-Cpz^FS zI0bG_?ZBGNKo;;b@+trn@_QxZ2M1%ra9&FgK}e_1GIx< z3EOvo3M6K&J&GLLX3^5Mg2+Bc)Q-FKp?5EiW{Ap$*c0@B?0T_3abp2`N8xxc>u~}h zEI5sP!HUp9O^SvyODVR#EcFj5fI za_UY;P94+?t;d#25-noTH;FqJpj|**+{B-RP}56UQmp{b8UT@gsqx3|5){?Mt$=qL z;A0mD5~kqPa>!a{xLvhSli;}Z3Zz9+l~8)_P4$y3s{Oj4Ur zoVG+ErwgVgb_I9mU!~x5jcw%JPWEn}-T^-WY+<|-2izU-%PDvc$W(>#pVO4Yu zT0pzxYMFsUk4gd`md&KcaiBIw1QQrU4u?}jawt;h(sf+m=pn=tT3G=ZOY{*)APx`& zYyqmS2y{1!Aas(XFc6Rxu>x%dBDYA=XeL*kKH3;-rPmc-gpL#FWwQ-XA6b>>zoBt? zs!YrV3~}eFuyG}nkyf`W<8!lMR$0}G%@Hs&#%dt%K;Y~ti{;;7X8 z>*tTxyZTmF9AUrCjoBrtdAZXqc0>Um3aiulCliPQh_zBvc`2xmlgO(Py z4N@sN#g_NjS7AEZtAZ#seXH^=dnYv}&K8)iMF{K5_B|gKd_sNf*eZ93hz z;>bQv$o}Nse&AARywCMu^bAQquE;m$rRc2@vD75H%ra25Ap&~wO%J=E<> zqv1VTg&yClhf*Wk$8reaR?r3nDzQ{d;IO)Zp2+=1kpA&B24P0E$MoZ!dKf-heq|bqM?ozhD1JnOxwSnbYpOrCCNwu=M0Gn z#M+esu=IViPPtcyA*gaH(fop-&q{u2?I}xFJk>!}#g=k+Yz5K|DmJufzerhoNB)p& z$gSEvZ9~Cv!;a^$h)ZsRfgUV|vXy@KNo#1mXT^Z~b->Ca*`nJVWX(3&2t{17v+^{7 z1RJ8P#I4yn{ICmx8X`8}pqNQ6-#Jz)>G-H4jv7)9>X_NI7yC{vP)#os?Wx7Cctql= zjvvAn@fvrEv1g4AccJ_k<1R%7t$_S)l~@9l82f>rYER*mP$6E9bGlMAycKSWJfgzI~2zrEwaXI)fS#kGq00iq9HWJsY{Xv;eZe$=(j$ z&_3DyLGe4EP zXd7C~p*og~DOC?g3S1vqp)N0qr7w+VVML_bWrVi1@?lQ6kS+Ed8Gp#pl z5k~WMHvKu7J0V3J;bwRsCbE)5HXfh_Vm6m=nVjb_|F~vCU~u3H#53B?0~klo2n;IH z6zF+5ie)ek?^a+}5BO#1weJQFi2rn*$WuT+1RiNi+Ji`biQK^M5*yXbfnlj5W~iP$ zKQ8G?r+D~e7AXxxA7erUPPY(s+*j7S?$)@#w!BwB_7NMp_A?*~LkuvY@gh;2qdib| zMIn#oJy-4LBTpkIig8~{_%V3~Gl~V(P_$|0AjPKApi~(Wf_bti=+xicDqk>M+t$<-0Z5x20o(bmI1I%GOC&-U z2Ci8<^Og&_p#{+?Zb?jmJbAAR);OLcIO>{a0{q?* zhA2A)!SrWRVbF1~R+(mFQ8$(PQ<-6mEr>0>zU8HdQgvgPwPrHdAm3fV0K?ojDk54J#Cfv<$C z6HIReMjkJ%H?in`g)|`%sOt$H zHAE{H6#<=vYZpOxlSX)Efrm<@+BLt_*x9Wo4Z&xCsDz=$ct$4Y0;$kq&qGwnm=(^- ziKiOD0+_l1`e%55iY8wln8=TskPB7QG;R45LI}CN;ZyRvjDhIC% z!*F_*!=R0H;l7Bu;2|L;jtpE2$?IC6$B~0xdbYCu%EL-OY- zMV$`rc&1VkXJp&Z)2kYmR$5>yQ7G^Os8pV6#I8IQLwC}aH=IZ@gzDRZnHA4HM#v6` zk{L%d)+))I%t_@`bp=0DR3;8O$lckk#H7Ag3bPYi>Bt~|ZX1hHCc9u6WLp-aN-Sow z5BOwP4W^p8EUs+kEuZh*Fd5E#wB3Bm?RPe^54tnBh+^1@yG7{g8778Ez0+zKf?Ry9 z9WhRki^fu>O~k-G07p5L**IS}tz#GbqY$ix+|uNR?nrJznBytFgJ-tw%$98S1y6RX6r9Px zzoZy0RSsEVM-g@f6h%e0+~z(hJ0DpEfL{D#uW8Jgw& zLc4s{vAYlsLnJkEby&o%w&qXz^9^wy@tiR0_6p-=14icWwZXWLHxi?gkGO8=f$t-? z>H$KovQJ5$PN26>H^lUgh>#z4fdh&Ag~mMsLBI!c9|r>uwaoZ>%70xe_cY~wHXS|V z_KoahUw?-Z#p>IBH3qHCt1k32w7A1AF)K7``xJy$?$W15{@*CmWefSOCie{ADKfkM zP>28yGk|Q@R&D1kA#PFf&ZLIq(NfTV!7eoMyYTq67<1$u2=Vu=nzp4YB-QOyk5gPR zOBu*FB57!r7oN(y{Povbnz6xrBn!{;Z67sfGsec2IjrMx9G%m}=X!i~ZE~1w?E+54 zQinB`JeQS$GtQOTU*ukb{7$5}zc>sdb%st`6WQf}+?9;_kGIY3y2{%r#k(DKi1;lH zT1mOjKWn~R&>L;p82qL&G$VPx6_TdwG5y9dG<{0Q)yu|DVw=BV?K&Y%1A41wsaI_w z)VD3~9vs%RWuMn%pS=y|`r84!1Jv1k#1*3zv+Rg1|FEA@~*;j5u*Hn!)LD38tO z5G_H4hknbc*u)B0?)B`jqAFI5JEFpUOgvYSE_V>I8+d08n94@4Y!Z%Z;M>5SR_+V6 zz9jU~mf(6F`r}H!7@9 z{?m-F!{2Y*8STkGcVbn(qRLlQNyXkr|D%3?SCwz7a-hn$RQX{6&t46l_1{qWw)*Yt z=|2dma*aLzFTYQ@#@Zzd+a=A|=7eE8W*FN*$QO`YtOW(PomZ>@_zO=dwv8;7J+4hy zS|$?PikMC7tHd0ZKCIO`Kn2;R9bWL;Bu(w|h1~*{%|y4&64nOI#sp!zBWXFH7HPqx zCV%-4e=F(0sy=hrH4|86yQ(B$MgDZm|Hb>+ocfEm-Y)A`6^5<}zv_5Xn|`Gt?@yj> zTc-KKyso#9;mg|31$f&f_v$<~b$PuybGMecJ7n|fJeun7_1XOFki+XXrn&7bH)ihY z&XrQGpuF6-%h%Nm)0nEO8MJklt}V1ioj}}5ZZ18S+os3L)6tNOs-w(w>#a>5u1ed+ z&c#}$;A%bK=ImSDbyE{VcFDO_5bW0JwwmqErc7Jyp^INc0c2Hvt?Y5T)LI33?4DIi zXB*iyq1Fy~e4a}Sj~8wujaD0RsF;$5Gi(_B^s_%Ak%m1Mv(-)@(_Dz8J@ zX0DP^M7N|>T0!iXud293uuZBebxd28q6#fl`|MPNs46QJz4^D>$VOGnG_@fS75uKt zK~-v6w3AJlr%0;)p?$`w{7f|^fZESPwMjA69(fMtHWEvfjP@2er4)`^NGBzyaR4e{M5WV#!Ue3l zd`;c^t-QKbfu>!SrY?X!OVHE+SD%}yEl|bY%hnm0I>L7Dx;YP1ckl`VI%QvKYF~qU z*PKgiXJqSiOML5~A=6TuX5_)P%CA(xtQM)2wty;o)ol|hH80S{TuR%5RukJkgA#>? zHW)jh&Aq*HAs(t$Am$fMX#JINN>h%N)tpDy?cfrJZh*)4n)rz@&e_p z(6%Xom`&`S4XEfwH6#K;*=o!IRK&G)`X5~1wV8k9!A?Huk8a;4-_ORj`MUt|tz`LO z%d$Sf4{x+fZl9cq?3&i6HE=Uzb21;RbYR|`$44&uh7>;eb<{3vQ(( z6d|j0Jza6sX6msD7b`j>>0xSQ>-;=B;ZUi0EOWVR`>Z_mNLnW3*$n|L`Q6g+)FEh- zfu|0(Q}Ugiku-9lZOWak__z^zW1^kr!MDhw2BWcVcQxCccY}>>!+e0c@){1hsY%{eMC%B9$4;L+pz`oRm2_^+=~WQXPKm5x5tEX3oe|`f)fM5Uj|9RzPNRq7p0EBNU&Hw-a literal 0 HcmV?d00001 diff --git a/data/output/oath_codes/charges_grouped_table_excel.csv b/data/output/oath_codes/charges_grouped_table_excel.csv new file mode 100644 index 0000000..6df7456 --- /dev/null +++ b/data/output/oath_codes/charges_grouped_table_excel.csv @@ -0,0 +1,19 @@ +relevant_charge,n_code,code,description +FAILURE TO RECYCLE,14,"ASR7 , ASU4 , ASX1 , ASX4 , ASX7 , ASR4 , ASR8 , ASR9 , ASS1 , ASS2 , ASS3 , ASS4 , ASS5 , ASS6","FAILURE TO RECYCLE ORGANICS HOTEL 100 OR MORE ROOMS 1ST , FAILURE TO RECYCLE ORGANICS HOTEL 1ST , ORGANICS MIXED WITH NON-ORGANICS MATERIALS 1ST , ORGANICS MIXED WITH NON-ORGANIC MATERIALS 1ST , FAILURE TO RECYCLE ORGANICS FSE AT LEAST 7,000 SQUARE FEET 1ST , FAIL TO RECYCLE ORGANICS FSE AT LEAST 15,000 SQ FT 1ST OFFENSE , FAILURE TO RECYCLE ORGANICS FSE CHAIN 2 OR MORE 1ST , FAIL TO RECYCLE ORGANICS FSE CHAIN 100 OR MORE 1ST OFFENSE , FAIL TO RECYCLE ORGANICS, FOOD STORE AT LEAST 10,000 SQFT CHAIN 1ST , FAIL TO RECYCLE ORGANICS RETAIL FOOD STORE AT LEAST 25000 SQ FT 1ST , FAILURE TO RECYCLE ORGANICS STADIUM 1ST , FAILURE TO RECYCLE ORGANICS HOTEL 2ND , FAILURE TO RECYCLE ORGANICS HOTEL 3RD+ , FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 1ST , FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 2ND , FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 3RD+ , FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 1ST , FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 2ND , FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 3RD+" +IMPROPER DISPOSAL,74,"AR7G , ASP4 , AB01 , AH30 , AH3G , AR01 , AR02 , AR06 , AR08 , AR09 , AR10 , AR11 , AR12 , AR17 , AR19 , AR1A , AR1E , AR1H , AR20 , AR21 , AR22 , AR2E , AR31 , AR32 , AR33 , AR41 , AR46 , AR48 , AR4E , AR4G , AR4H , AR51 , AR6B , AR6H , AR76 , AR79 , AR7C , AR7F , AR7H , AR8G , AR9H , ARA1 , ARA7 , ARB1 , ARB4 , ARC1 , ARC4 , ARC7 , ARD1 , ARD7 , ARG7 , ARH1 , AS01 , AS17 , AS27 , AS2A , AS2P , AS43 , AS6B , ASCF , ASF4 , ASF5 , ASGD , ASGJ , ASP5 , ASP6 , ASP8 , ASP9 , ASU7 , ASV1 , ASY0 , ASY4 , ASY7 , ASZ1","FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION(1TO8DWELLING UNITS) , IMPROPER DISPOSAL--BEDDING 1ST OCCURRENCE , IMPROPER DISPOSAL BEDDING 1ST OFFENSE , IMPROPER DISPOSAL OF LEAD ACID BATTERY , FAILURE TO REMOVE LOCKING DEVICE FROM DISCARDED REFRIGERATOR , IMPROPER GARBAGE COLLECTION AND OR DISPOSAL , IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 9+ DWELLING UNITS , IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 9+ DWELLING UNITS , IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINERS 9+ DWELLING UNITS , FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 9+ DWELLING UNITS , NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS , RECYCLABLES PLACED FOR COLLECTION WITH NON-RECYC 9+ DWELLING UNITS , IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER NINE OR MORE DWLNG UNITS , IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 9+ DWELLING UNITS , FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 9+ DWELLING UNITS , IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1 TO 8 DWELLING UNITS , NON-RECYC LEFT IN RECYC CONTAINER FOR COLLECTION 1TO8 DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS , NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNTS , RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS , IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1-8 DWELLING UNITS , FAILURE TO SOURCE SEPARATE DESIGNATED RECYCLABLES , FAILURE TO SOURCE SEPARATE NON-FOOD BEVERAGE RECYCLABLES , FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYCLABLES 9+ DWELLING UNITS , IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 1 TO 8 DWELLING UNITS , FAILURE TO BUNDLE NEWSPAPES MAGAZINES CARDBOARD 1 TO 8 DWELLING UNITS , RECYC PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS , FAILURE TO MAINTAIN SOURCE SEPARATION , RECYCLABLES PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS , FAILURE TO MAINTAIN SEPARATION OF PAPER TRANSFER STATIONS , IMPROPER DISPOSAL-RECYCLABLE OR COMMINGLED MATERIALS TRANSFER STN-2D , FAILURE TO MAINTAIN SOURCE SEPARATION 4TH OR SUBSEQUENT VIOL IN 6MON , IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 1 TO 8 DWELLING UNITS , FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS , FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST , FAILURE TO BUNDLE NEWSPAPER CARDBOARD SOURCE SEPARATION 1ST , FAILURE TO BUNDLE NEWSPAPER CARDBOARD SINGLE STREAM 1ST , MIXED YARD WASTE 1ST , MIXED CONSTRUCTION AND DEMOLITION DEBRIS 1ST , RECYCLABLES MIXED WITH OTHER RECYCLABLES SOURCE SEPARATION 1ST , COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SOURCE SEP 1ST , COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SINGLE STR 1ST , SEPARATED RECYCLABLE MATERIALS NOT MAINTAINED PRIOR TO COLLECTION 1ST , FAILURE TO SEPARATE RECYCLABLES SINGLE STREAM 1ST , REMOVAL OF COMMERCIAL WASTE , SEPARATION AND WEIGHT , IMPROPER DISPOSAL OF INFECTIOUS MEDICAL WASTE , IMPROPER DISPOSAL DSNY LITTER BASKET - 2ND OFFENSE , IMPROPER DISPOSAL - 1ST OFFENSE , IMPROPER DISPOSAL OF REGULATED HOUSEHOLD WASTE , IMPROPER DISPOSAL 3RD OFFENSE , IMPROPER DISPOSAL OF ELECTRONIC WASTE , FAILURE TO PROPERLY BAG AND OR BUNDLE REFUSE AND RECYCLABLES , FAILURE TO PLACE BAGGED AND OR BUNDLED REFUSE AND RECY.AT PREDETER.LOC , PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW W O CUSTOMER REQ , FAIL TO PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW ON REQUEST , IMPROPER DISPOSAL BEDDING 2ND OFFENSE , IMPROPER DISPOSAL BEDDING 3RD OFFENSE , IMPROPER RECEPTACLES 2ND OFFENSE , IMPROPER RECEPTACLES 3RD OFFENSE , ORGANICS PLACED OUT FOR COLLECTION IN CONTAINER W O LATCHING DEVICE 1 , ORGANICS IN STORAGE AREA PLACED IN A CONTAINER W O LATCHING DEVICE 1ST , IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT-9 OR MORE DWELLING UNITS 1 , IMPROPER DISPERSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST , IMPROPER DISPOSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST , IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT- 1 TO 8 DWELLING UNITS 1ST" +NONPUTRESCIBLE WASTE,2,"AS37 , AS39","COMMISSIONER S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE , COMMISSIONER S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE" +RECYCLING PROGRAM,5,"AR34 , AR35 , AR70 , ARE1 , ASCB","FAILURE TO ESTABLISH RECYCLING PROGRAM , FAILURE TO NOTIFY EMPLOYEES ABOUT RECYCLING PROGRAM , NO WRITTEN RECYCLING NOTICE TO TENANTS EMPLOYEES , FAIL NOTIFY TEN OCC EMPLOYEES ABT RECY REQ IN WRITING SOURCE SEP 1ST , FAILURE TO REGISTER PUBLICLY ACCESSIBLE COLLECTION BIN WITH DSNY" +SANITATION VIOLATION,2,"AS96 , AS98","SANITATION VIOLATION , SANITATION PROVISION - UNSPECIFIED SECTION" +adandoned vehicle,1,AV01,ABANDONING VEHICLE +debris,5,"AS08 , AS19 , AS22 , AS9C , AS9D","DUST OR SUBSTANCES FLYING 1ST OCCURRENCE , DUST OR SUBSTANCES FLYING , LOOSE RUBBISH 1ST OCCURRENCE , LOOSE RUBBISH , EARTH, ROCKS AND RUBBISH , LOOSE RUBBISH - 2ND OFFENSE , LOOSE RUBBISH - 3RD OFFENSE" +dirty sidewalk,8,"AS06 , AS26 , AS6M , AS6V , AS8V , AS97 , AT12 , AT13","DIRTY SIDEWALK , DIRTY SIDEWALK DIRTY AREA , FAILURE TO CLEAN 18 INCHES INTO STREET , DIRTY AREA , DIRTY SIDEWALK DIRTY AREA VACANT LOT , FAILURE TO CLEAN 18 INCHES INTO STREET VACANT LOT , DIRTY SIDEWALK,FAIL TO CLEAN 18 INTO STREET,SIDEWALK OBSTRUCTION 2ND , FAILURE TO PROVIDE WORKING PUBLIC PAY TELEPHONE OPERATOR SERVICES , FAILED TO CLEAN MAINTAIN PUBLIC PAY TELEPHONE AS PER REQMNTS OF SUBSEC" +hazards,19,"AS10 , AS28 , AS29 , AS50 , AS51 , AS54 , AS55 , AS56 , AS57 , AS58 , AS59 , AS60 , AS61 , AS63 , AS65 , AS66 , AS69 , AS72 , AS74","NOXIOUS LIQUIDS , IMPROPER TRANSPORT STORAGE DISPOSAL OF ASBESTOS WASTE , HAZARDOUS TRANSPORTATION STORAGE DISPOSAL OF ASBESTOS WASTE , PRESENT FOR STORAGE ASBESTOS WASTE:NOT WET , PRESENT FOR STORAGE ASBESTOS WASTE:UNCONTAINED,UNSEALED , PRESENT FOR STORAGE ASBESTOS WASTE:MIXED W OTH.WASTE , STORAGE OF ASBESTOS WASTE:UNCONTAINED UNSEALED , STORAGE OF ASBESTOS WASTE:NOT WET,NOT 6 MIL , STORAGE OF ASBESTOS WASTE:NO WARNING LABELS , STORAGE OF ASBESTOS WASTE:NO 24HR INSPECTION , STORAGE OF ASBESTOS WASTE:INADEQUATE SPARE LEAK-TIGHT CONTAINERS , STORAGE OF ASBESTOS WASTE:INADEQUATE WATER SUPPLY , STORAGE OF ASBESTOS WASTE:MIXED W OTHER WASTE , STORAGE OF ASBESTOS WASTE:50CUBIC YDS NO AUTHORIZATION , PRESENT FOR TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED , PRESENT FOR TRANSPORT ASBESTOS WASTE:NOT WET,NOT 6 MIL , PRESENT FOR TRANSPORT ASBESTOS WASTE:MIXED WITH OTHER WASTE , TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED , TRANSPORT ASBESTOS WASTE:NO WARNING LABEL" +illegal dumping,7,"AS13 , AS14 , AS15 , AS16 , AS20 , AA13 , AS1Q","ILLEGAL DUMPING OPERATOR OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OPERATOR OF VEHICLE - 1ST AND 2ND OFFENSE , ILLEGAL DUMPING OWNER OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OWNER OF VEHICLE 1ST AND 2ND OFFENSE , ILLEGAL DUMPING CITIZEN COMPLAINANT - 1ST OFFENSE , ILLEGAL DUMPING CITIZEN COMPLAINT - 1ST AND 2ND OFFENSE , IMPROPER DISPOSAL 1ST OCCURRENCE , IMPROPER DISPOSAL 1ST OFFENSE , IMPROPER DISPOSAL DSNY LITTER BASKET 1ST OFFENSE , IMPROPER USE OF DSNY LITTER BASKET , UNLAWFUL DUMPING , ILLEGAL DUMPING OWNER OF VEHICLE 2ND OFFENSE" +improper signage,28,"AD06 , AR03 , AR14 , AR25 , AR36 , AR44 , AR7E , ARE7 , ARF1 , ARF4 , ARF7 , ARG1 , ARG4 , ARH4 , ARH7 , ARI1 , ARI4 , ASC1 , ASGP , ASU1 , ASU2 , ASU3 , ASV4 , ASV5 , ASV6 , ASW4 , ASW5 , ASW6","IDENTIFYING SIGNS IMPROPERLY DISPLAYED OR MISSING , FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9+ DWELLING UNITS , FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELLING UNIT , FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELNG UNITS , RECYCLING CONTAINERS NOT PROVIDED NOT LABELED , FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 4 TO 8 DWELLING UNITS , FAILURE TO POST SIGNAGE IN STORAGE AREA SOURCE SEP 1ST , FAILURE TO POST SIGNAGE IN STORAGE AREA SINGLE ST 1ST , FAILURE TO POST SIGNAGE PUBLIC AREA SOURCE SEP 1ST , FAILURE TO POST SIGNAGE PUBLIC AREA SINGLE STREAM 1ST , UNLABELED RECYCLING CONTAINER OWNER LESSEE SOURCE SEP 1ST , UNLABELED RECYCLING CONTAINER OWNER LESSEE SINGLE STREAM 1ST , UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SOURCE SEP 1ST , UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SINGLE STREAM 1ST , FAILURE TO POST SIGNAGE SOURCE SEPARATION 1ST , FAILURE TO POST SIGNAGE SINGLE STREAM 1ST , FAIL DISPLAY OWNER INFORMATION ON PUBLICLY ACCESSIBLE COLLECTION BIN , FAIL TO DISPLAY REQUIRED SIGNAGE ABOUT PLASTIC STRAW AVAILABILITY , ORGANICS CONTAINERS NOT LABELLED 1ST , ORGANICS CONTAINERS NOT LABELLED 2ND , ORGANICS CONTAINERS NOT LABELLED 3RD+ , FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 1ST , FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 2ND , FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 3RD+ , FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 1ST , FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 2ND , FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 3RD+" +littering,4,"AS03 , AS04 , AS05 , AS3C","LITTERING 1ST OFFENSE , SWEEP-OUT 1ST OFFENSE , THROW-OUT 1ST OFFENSE , LITTERING FROM A MOTOR VEHICLE 1ST OFFENSE" +not related,1,ASBG,"POSSESS SELL OFFER POLYSTYRENE SINGLE SERVICE ARTICLE STORE 1ST , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES STORE 1ST" +obstruction,2,"AS07 , AS23","SIDEWALK OBSTRUCTION , STREET OBSTRUCTION" +rats,1,AH50,RAT OR OTHER PEST INFESTATION +remove,100,"AD09 , AS02 , A190 , A1D1 , AA03 , AA04 , AA06 , AA35 , AA75 , AD07 , AD18 , AD19 , AD30 , AD6L , AD6M , ADF3 , ADF4 , ADP4 , AE24 , AE27 , AE38 , AE51 , AF25 , AF99 , AFJ3 , AFW3 , AFW5 , AFY3 , AFY4 , AFY6 , AFY8 , AFY9 , AG01 , AG11 , AG12 , AG14 , AG15 , AG21 , AG23 , AG25 , AG26 , AG27 , AGE3 , AGE7 , AGF6 , AGI7 , AH2I , AH61 , AH62 , AHG3 , AHH8 , AHJ5 , AN62 , AS11 , AS12 , AS21 , AS24 , AS2C , AS2D , AS2M , AS30 , AS33 , AS36 , AS38 , AS40 , AS41 , AS44 , AS92 , AS94 , AS95 , AS9I , ASBA , ASBD , ASDM , ASDU , ASDX , ASH9 , ASJ5 , ASK4 , ASK5 , ASK6 , ASK7 , ASL4 , ASL5 , ASL6 , ASL9 , ASM3 , ASN6 , ASQ5 , ASQ6 , AST7 , AV02 , AW44 , AW51 , AW55 , AX25 , AX26 , AZ98 , AZ99 , NA","OBSTRUCTION OF STREET W CONSTRUCTION MATERIALS EQUIPMENT W O PERMIT , CONSTRUCTION MATERIALS EQUIPMENT STORED ON STREET W 0 PERMIT , POSTING OF SIGN PERMIT , POSTING OF SIGN PERMIT, WASTE REMOVAL , PERFORMING PLUMBING WORK WITHOUT A MASTER PLUMBER LICENSE , UNLAWFUL ADVERTISEMENT FOR CERTAIN OCCUPANCIES - 3RD OFFENSE OR MORE , FAILURE TO COMPLY WITH DIRECTIVES OF POLICE,PARK SUPERVISOR,LIFEGUARD , FAILURE TO COMPLY WITH DIRECTIONS PROHIBITIONS ON SIGNS , CUTTING, REMOVAL, OR DESTRUCTION OF A TREE , UNAUTHORIZED CONSUMPTION POSSESSION OF ALCOHOLIC BEVERAGE , SMOKING IN A PARK OR ON OTHER PROPERTY UNDER JURISDICTION OF DEPT. , CONSTRUCTING VAULT W O LICENSE OR REVOCABLE CONSENT , CANOPY WITHOUT PERMIT , POST POLE FLAGPOLE SOCKET LAMPPOST W O PERMIT CONSENT , FAILURE TO COMPLY WITH THE TERMS AND CONDITIONS OF DOT PERMITS , RIGHT OF WAY - FAILURE TO YIELD, PHYSICAL INJURY , LEAVING THE SCENE - PROPERTY DAMAGE FIRST OFFENSE , FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 1ST OFFENSE , FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 2ND+ OFFENSE , FAILURE TO DISPLAY INTERCITY BUS PERMIT- 2ND SUBSEQUENT OFFENSE , EMISSION OF ODOROUS AIR CONTAMINANT 1ST OFF , EMISSION OF AIR CONTAMINANT FROM VEHICLE 1ST OFFENSE , AIR CONTAMINANT FROM OPEN FIRE , IDLING OF MOTOR VEHICLE ENGINE MORE THAN THREE MINUTES 1ST OFF , NA , NYC HEALTH CODE PROVISION - MISCELLANEOUS , MFVU UNSECURED WHEN LEFT UNATTENDED FOR MORE THAN ONE-HALF HOUR , OPERATING A MFVU UNIT WITHOUT A PERMIT IN ANY PUBLIC SPACE , OPERATING A MFVU IN ANY PUBLIC SPACE WITHOUT A LICENSE , ITEMS NOT IN OR UNDER CART EXCEPT WASTE CONTAINER , VENDING AT TIME OR PLACE PROHIBITED , VENDING ON SIDEWALK LESS THAN 12 FT., OR NOT AT CURB , PUSHCART TOUCHING OR LEANING AGAINST BUILDING , VENDING IN BUS STOP, SIDEWALK NEXT TO A HOSPITAL OR HEALTH FACILITY , UNLICENSED GENERAL VENDOR INCLUDING CONT D UNLICENSED ACTIVITY 1ST , VENDING ON SIDEWALK LESS THAN 12 FT. WIDE, OR NOT AT CURB 1ST , USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST , STAND GOODS AGAINST DISPLAY WINDOW WITHIN 20 FT. OF EXITS 1ST , VENDING IN PROHIBITED AREA OF SIDEWALK OR STREET 1ST , VEND AT TIMES PLACES RESTRICTED BY VENDOR REVIEW PANEL 1ST , VEND ON VENT, CELLAR DOOR, MANHOLE, OR SUBWAY GRATING 1ST , VENDING FROM A PARKED MOTOR VEHICLE 1ST , ILLEGAL USE OF ELECTRICAL OIL GAS POWERED DEVICE , VENDING TOO CLOSE TO PROHIBITED PLACES 1ST , VENDING WITHIN 20 FT FROM ENTRANCE EXIT OF BUILDING 1ST , VEND W IN 5FT OF BUS SHELTER NEWSSTAND PUBLIC PHONE DISABLE RAMP 1ST , VENDING ON SIDEWALK LESS THAN 10 FEET MIDTOWN 1ST , TRANSFER OF FOOD TO UNLICENSED VENDOR , CONTROL OF DOGS AND OTHER ANIMALS TO PREVENT NUISANCE , DOGS TO BE RESTRAINED , DOG, CAT NOT TIMELY EUTHANIZED , FAILURE TO TAKE REASONABLE PRECAUTIONS TO PROTECT HEALTH AND SAFETY , FAIL TO COMPLY WITH EXEC ORDER 228 AS EXTENDED 1ST OFFENSE , UNAUTHORIZED USE OF MOTOR VEHICLE CLAXON , INTERFERING WITH D.S. EMPLOYEE , UNAUTHORIZED DISTURBANCE OR REMOVAL OF RECYCLABLE MATERIALS-NO VEHICLE , SNOW,ICE DIRT ON SIDEWALKS , DISABLED VEHICLE , SNOW, ICE DIRT ON SIDEWALKS - 2ND OFFENSE , SNOW, ICE DIRT ON SIDEWALKS - 3RD OFFENSE , RECEIVED RECYCLABLES FOR STORAGE COLLECTION ETC. BY UNAUTH PERSONS-2ND , ILLEGAL POSTING OF HANDBILL NOTICE , ILLEGAL PLACEMENT OF STICKERS OR DECALS ON PUBLIC OR PRIVATE PROPERTY , OPERATING TRANSFER STATION W O PERMIT NONPUTRESCIBLE WASTE , OPERATING TRANSFER STATION W O PERMIT PUTRESCIBLE WASTE , OPERATING DUMP FILL OPERATION W O PERMIT , COMMISSIONER S RULES RE: FILL DUMP OPERATIONS , VEHICLE BODY - IMPROPER COLOR , FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS , FAILURE TO FILE DEC MEDICAL WASTE PLANS , PUBLIC URINATION 1ST OFFENSE , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES FSE 1ST , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERV ARTICLES MOBILE FOOD 1ST , IMPROPER RECEIPT OF A DEPARTMENT MARKED ITEM 1ST OFFENSE , FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM RPF 1ST , FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM SMF 1ST , REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OPERATOR -1ST , REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -1ST , REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -2ND , REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -3RD , REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OPERATOR -1ST , REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR - 1ST , REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR -2ND , REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OWNER -1ST , REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OWNER -1ST , REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OWNER -1ST , REMOVAL TRANSPORT OF COMMERICAL RECYCLABLE MATERIAL OWNER -1ST , USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OPERATOR , USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OWNER , FAIL NOTIFY DSNY REGARDING ONSITE ORGANIC WASTE PROCESSING EQUIPMENT 1 , ILLEGAL PLACEMENT POSTERS STICKERS ON WINDSHIELDS WIPERS ON VEHICLES , ILLEGAL USE OF HYDRANT S , FAILED TO INSTALL A BACKFLOW PREVENTER , FAILED TO RETURN METER PERMIT , OPEN CONTAINER CONSUMPTION OF ALCOHOL ON STREETS , BUSINESS UTILIZING MOTORIZED SCOOTER ALLOWING EMPLOYEE TO OPERATE 1ST , UNSPECIFIED LAW, CODE OR REGULATION , UNCODED LAW, RULE, OR REGULATION" +spills,9,"AS09 , AS9A , AS9B , AFK2 , AFZ5 , AH3I , AK09 , AS3F , ASF3","SPILLAGE FROM A RECEPTACLE 1ST OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE , SPILLAGE FROM A RECEPTACLE 2ND OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, SECOND OFFENSE , SPILLAGE FROM A RECEPTACLE 3RD OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, THIRD OFFENSE , SOLID AND LIQUID WASTE CAUSED BY THE OPERATION OF THE UNIT NOT COLLECT , FAILURE TO REMOVE AND CLEAN AREA OF ANY WASTE, DEBRIS OR FOOD SPILLAGE , FAILURE TO PROPERLY REMOVE AND OR CLEAN DEBRIS AND CONSUMER LITTER , FAILURE TO REMOVE CANINE WASTE , SPILLAGE FROM A MOTOR VEHICLE 1ST OFFENSE , SPILLAGE CONDITION FROM OVERFLOWING RECEPTACLE" +storage receptacles,34,"AS18 , ASP1 , ASP7 , ASZ4 , ASZ7 , ADC9 , AR04 , AR05 , AR07 , AR15 , AR18 , AR1F , AR1G , AR1J , AR26 , AR4F , AS8C , AS8D , ASA9 , ASAC , ASAF , ASAI , ASAL , ASAO , ASAR , ASAU , ASAX , ASC3 , ASC4 , ASC7 , ASP2 , ASP3 , ASZ6 , ASZ9","STORAGE OF RECEPTACLES NON-COLLECTION DAY , STORAGE OF RECEPTACLES 1ST OCCURRENCE , STORAGE OF RECEPTACLES , UNCOVERED RECEPTACLES 1ST OCCURRENCE , UNCOVERED RECEPTACLES 1ST OFFENSE , IMPROPER RECEPTACLES 1ST OCCURRENCE , IMPROPER RECEPTACLES 1ST OFFENSE , INSUFFICIENT RECEPTACLES 1ST OCCURRENCE , INSUFFICIENT RECEPTACLES 1ST OFFENSE , BROKEN RECEPTACLES 1ST OCCURRENCE , BROKEN RECEPTACLES 1ST OFFENSE , FAIL TO HAVE PROPER ST PROTECTION UNDER COMMERCIAL REFUSE CONTAINER , NO ACCESSABLE RECYCLING STORAGE AREA 9+ DWELLING UNITS , INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 9+ DWELLING UNITS , FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS , NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS , NO ACCESSIBLE RECYCLING STORAGE AREA 4 TO 8 DWELLING UNITS , FAILURE TO CLEAN RECYCLABLES 1 TO 8 DWELLING UNITS , FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYC 1 TO 8 DWELLING UNITS , INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 4 TO 8 DWELLING UNITS , STORAGE OF RECEPTACLES - 2ND OFFENSE , STORAGE OF RECEPTACLES - 3RD OFFENSE , STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 6PM , STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 8PM WITHOUT A RECEPTACLE , STORAGE OF RECEPTACLE PLACED OUT PRIOR TO 8PM IN UNCOVERED RECEPTACLE , STORAGE OF RECEPTACLES MBCP PLACED OUT PRIOR TO 4AM , STORAGE OF RECEPTACLES MBCP PLACED OUT AFTER 7AM , STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO 8PM W O A RECEPTACLE , STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO ONE HOUR OF CLOSING , STORAGE OF RECEPTACLES COM FAILURE TO REMOVE RECEPTACLES , STORAGE OF RECEPTACLES FAILURE TO REMOVE RECEPTACLES , ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN , ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN 2ND OFF , FAIL MAINTAIN COLLECTION BIN IN CLEAN NEAT CONDITION-PROPERTY OWNER , UNCOVERED RECEPTACLES 2ND OFFENSE , UNCOVERED RECEPTACLES 3RD OFFENSE , INSUFFICIENT RECEPTACLES 3RD OFFENSE , BROKEN RECEPTACLES 3RD OFFENSE" \ No newline at end of file diff --git a/data/output/oath_charges.csv b/data/output/oath_codes/oath_charges.csv similarity index 100% rename from data/output/oath_charges.csv rename to data/output/oath_codes/oath_charges.csv diff --git a/data/output/oath_codes/oath_charges_grouped.csv b/data/output/oath_codes/oath_charges_grouped.csv new file mode 100644 index 0000000..80d3326 --- /dev/null +++ b/data/output/oath_codes/oath_charges_grouped.csv @@ -0,0 +1,317 @@ +charge_1_code,n,relevant_charge,charge_1_code_description +AS18,3,storage receptacles,"STORAGE OF RECEPTACLES NON-COLLECTION DAY , STORAGE OF RECEPTACLES 1ST OCCURRENCE , STORAGE OF RECEPTACLES" +AD09,2,remove,"OBSTRUCTION OF STREET W CONSTRUCTION MATERIALS EQUIPMENT W O PERMIT , CONSTRUCTION MATERIALS EQUIPMENT STORED ON STREET W 0 PERMIT" +AR7G,2,FAILURE TO RECYCLE,"FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION(1TO8DWELLING UNITS)" +AS02,2,remove,"POSTING OF SIGN PERMIT , POSTING OF SIGN PERMIT, WASTE REMOVAL" +AS06,2,dirty sidewalk,"DIRTY SIDEWALK , DIRTY SIDEWALK DIRTY AREA" +AS08,2,debris,"DUST OR SUBSTANCES FLYING 1ST OCCURRENCE , DUST OR SUBSTANCES FLYING" +AS09,2,spills,"SPILLAGE FROM A RECEPTACLE 1ST OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE" +AS13,2,illegal dumping,"ILLEGAL DUMPING OPERATOR OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OPERATOR OF VEHICLE - 1ST AND 2ND OFFENSE" +AS14,2,illegal dumping,"ILLEGAL DUMPING OWNER OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OWNER OF VEHICLE 1ST AND 2ND OFFENSE" +AS15,2,illegal dumping,"ILLEGAL DUMPING CITIZEN COMPLAINANT - 1ST OFFENSE , ILLEGAL DUMPING CITIZEN COMPLAINT - 1ST AND 2ND OFFENSE" +AS16,2,illegal dumping,"IMPROPER DISPOSAL 1ST OCCURRENCE , IMPROPER DISPOSAL 1ST OFFENSE" +AS19,2,debris,"LOOSE RUBBISH 1ST OCCURRENCE , LOOSE RUBBISH" +AS20,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL DSNY LITTER BASKET 1ST OFFENSE , IMPROPER USE OF DSNY LITTER BASKET" +AS37,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE" +AS39,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE" +AS9A,2,spills,"SPILLAGE FROM A RECEPTACLE 2ND OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, SECOND OFFENSE" +AS9B,2,spills,"SPILLAGE FROM A RECEPTACLE 3RD OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, THIRD OFFENSE" +ASBG,2,not related,"POSSESS SELL OFFER POLYSTYRENE SINGLE SERVICE ARTICLE STORE 1ST , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES STORE 1ST" +ASP1,2,storage receptacles,"UNCOVERED RECEPTACLES 1ST OCCURRENCE , UNCOVERED RECEPTACLES 1ST OFFENSE" +ASP4,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL--BEDDING 1ST OCCURRENCE , IMPROPER DISPOSAL BEDDING 1ST OFFENSE" +ASP7,2,storage receptacles,"IMPROPER RECEPTACLES 1ST OCCURRENCE , IMPROPER RECEPTACLES 1ST OFFENSE" +ASR7,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS HOTEL 100 OR MORE ROOMS 1ST , FAILURE TO RECYCLE ORGANICS HOTEL 1ST" +ASU4,2,FAILURE TO RECYCLE,"ORGANICS MIXED WITH NON-ORGANICS MATERIALS 1ST , ORGANICS MIXED WITH NON-ORGANIC MATERIALS 1ST" +ASX1,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE AT LEAST 7,000 SQUARE FEET 1ST , FAIL TO RECYCLE ORGANICS FSE AT LEAST 15,000 SQ FT 1ST OFFENSE" +ASX4,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE CHAIN 2 OR MORE 1ST , FAIL TO RECYCLE ORGANICS FSE CHAIN 100 OR MORE 1ST OFFENSE" +ASX7,2,FAILURE TO RECYCLE,"FAIL TO RECYCLE ORGANICS, FOOD STORE AT LEAST 10,000 SQFT CHAIN 1ST , FAIL TO RECYCLE ORGANICS RETAIL FOOD STORE AT LEAST 25000 SQ FT 1ST" +ASZ4,2,storage receptacles,"INSUFFICIENT RECEPTACLES 1ST OCCURRENCE , INSUFFICIENT RECEPTACLES 1ST OFFENSE" +ASZ7,2,storage receptacles,"BROKEN RECEPTACLES 1ST OCCURRENCE , BROKEN RECEPTACLES 1ST OFFENSE" +A190,1,remove,PERFORMING PLUMBING WORK WITHOUT A MASTER PLUMBER LICENSE +A1D1,1,remove,UNLAWFUL ADVERTISEMENT FOR CERTAIN OCCUPANCIES - 3RD OFFENSE OR MORE +AA03,1,remove,"FAILURE TO COMPLY WITH DIRECTIVES OF POLICE,PARK SUPERVISOR,LIFEGUARD" +AA04,1,remove,FAILURE TO COMPLY WITH DIRECTIONS PROHIBITIONS ON SIGNS +AA06,1,remove,"CUTTING, REMOVAL, OR DESTRUCTION OF A TREE" +AA13,1,illegal dumping,UNLAWFUL DUMPING +AA35,1,remove,UNAUTHORIZED CONSUMPTION POSSESSION OF ALCOHOLIC BEVERAGE +AA75,1,remove,SMOKING IN A PARK OR ON OTHER PROPERTY UNDER JURISDICTION OF DEPT. +AB01,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF LEAD ACID BATTERY +AD06,1,improper signage,IDENTIFYING SIGNS IMPROPERLY DISPLAYED OR MISSING +AD07,1,remove,CONSTRUCTING VAULT W O LICENSE OR REVOCABLE CONSENT +AD18,1,remove,CANOPY WITHOUT PERMIT +AD19,1,remove,POST POLE FLAGPOLE SOCKET LAMPPOST W O PERMIT CONSENT +AD30,1,remove,FAILURE TO COMPLY WITH THE TERMS AND CONDITIONS OF DOT PERMITS +AD6L,1,remove,"RIGHT OF WAY - FAILURE TO YIELD, PHYSICAL INJURY" +AD6M,1,remove,LEAVING THE SCENE - PROPERTY DAMAGE FIRST OFFENSE +ADC9,1,storage receptacles,FAIL TO HAVE PROPER ST PROTECTION UNDER COMMERCIAL REFUSE CONTAINER +ADF3,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 1ST OFFENSE +ADF4,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 2ND+ OFFENSE +ADP4,1,remove,FAILURE TO DISPLAY INTERCITY BUS PERMIT- 2ND SUBSEQUENT OFFENSE +AE24,1,remove,EMISSION OF ODOROUS AIR CONTAMINANT 1ST OFF +AE27,1,remove,EMISSION OF AIR CONTAMINANT FROM VEHICLE 1ST OFFENSE +AE38,1,remove,AIR CONTAMINANT FROM OPEN FIRE +AE51,1,remove,IDLING OF MOTOR VEHICLE ENGINE MORE THAN THREE MINUTES 1ST OFF +AF25,1,remove,NA +AF99,1,remove,NYC HEALTH CODE PROVISION - MISCELLANEOUS +AFJ3,1,remove,MFVU UNSECURED WHEN LEFT UNATTENDED FOR MORE THAN ONE-HALF HOUR +AFK2,1,spills,SOLID AND LIQUID WASTE CAUSED BY THE OPERATION OF THE UNIT NOT COLLECT +AFW3,1,remove,OPERATING A MFVU UNIT WITHOUT A PERMIT IN ANY PUBLIC SPACE +AFW5,1,remove,OPERATING A MFVU IN ANY PUBLIC SPACE WITHOUT A LICENSE +AFY3,1,remove,ITEMS NOT IN OR UNDER CART EXCEPT WASTE CONTAINER +AFY4,1,remove,VENDING AT TIME OR PLACE PROHIBITED +AFY6,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT., OR NOT AT CURB" +AFY8,1,remove,PUSHCART TOUCHING OR LEANING AGAINST BUILDING +AFY9,1,remove,"VENDING IN BUS STOP, SIDEWALK NEXT TO A HOSPITAL OR HEALTH FACILITY" +AFZ5,1,spills,"FAILURE TO REMOVE AND CLEAN AREA OF ANY WASTE, DEBRIS OR FOOD SPILLAGE" +AG01,1,remove,UNLICENSED GENERAL VENDOR INCLUDING CONT D UNLICENSED ACTIVITY 1ST +AG11,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT. WIDE, OR NOT AT CURB 1ST" +AG12,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST +AG14,1,remove,STAND GOODS AGAINST DISPLAY WINDOW WITHIN 20 FT. OF EXITS 1ST +AG15,1,remove,VENDING IN PROHIBITED AREA OF SIDEWALK OR STREET 1ST +AG21,1,remove,VEND AT TIMES PLACES RESTRICTED BY VENDOR REVIEW PANEL 1ST +AG23,1,remove,"VEND ON VENT, CELLAR DOOR, MANHOLE, OR SUBWAY GRATING 1ST" +AG25,1,remove,VENDING FROM A PARKED MOTOR VEHICLE 1ST +AG26,1,remove,ILLEGAL USE OF ELECTRICAL OIL GAS POWERED DEVICE +AG27,1,remove,VENDING TOO CLOSE TO PROHIBITED PLACES 1ST +AGE3,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST +AGE7,1,remove,VENDING WITHIN 20 FT FROM ENTRANCE EXIT OF BUILDING 1ST +AGF6,1,remove,VEND W IN 5FT OF BUS SHELTER NEWSSTAND PUBLIC PHONE DISABLE RAMP 1ST +AGI7,1,remove,VENDING ON SIDEWALK LESS THAN 10 FEET MIDTOWN 1ST +AH2I,1,remove,TRANSFER OF FOOD TO UNLICENSED VENDOR +AH30,1,IMPROPER DISPOSAL,FAILURE TO REMOVE LOCKING DEVICE FROM DISCARDED REFRIGERATOR +AH3G,1,IMPROPER DISPOSAL,IMPROPER GARBAGE COLLECTION AND OR DISPOSAL +AH3I,1,spills,FAILURE TO PROPERLY REMOVE AND OR CLEAN DEBRIS AND CONSUMER LITTER +AH50,1,rats,RAT OR OTHER PEST INFESTATION +AH61,1,remove,CONTROL OF DOGS AND OTHER ANIMALS TO PREVENT NUISANCE +AH62,1,remove,DOGS TO BE RESTRAINED +AHG3,1,remove,"DOG, CAT NOT TIMELY EUTHANIZED" +AHH8,1,remove,FAILURE TO TAKE REASONABLE PRECAUTIONS TO PROTECT HEALTH AND SAFETY +AHJ5,1,remove,FAIL TO COMPLY WITH EXEC ORDER 228 AS EXTENDED 1ST OFFENSE +AK09,1,spills,FAILURE TO REMOVE CANINE WASTE +AN62,1,remove,UNAUTHORIZED USE OF MOTOR VEHICLE CLAXON +AR01,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 9+ DWELLING UNITS +AR02,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 9+ DWELLING UNITS +AR03,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9+ DWELLING UNITS +AR04,1,storage receptacles,NO ACCESSABLE RECYCLING STORAGE AREA 9+ DWELLING UNITS +AR05,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 9+ DWELLING UNITS +AR06,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINERS 9+ DWELLING UNITS +AR07,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS +AR08,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS +AR09,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 9+ DWELLING UNITS +AR10,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS +AR11,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION WITH NON-RECYC 9+ DWELLING UNITS +AR12,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER NINE OR MORE DWLNG UNITS +AR14,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELLING UNIT +AR15,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS +AR17,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 9+ DWELLING UNITS +AR18,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS +AR19,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS +AR1A,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 9+ DWELLING UNITS +AR1E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1 TO 8 DWELLING UNITS +AR1F,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 4 TO 8 DWELLING UNITS +AR1G,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 1 TO 8 DWELLING UNITS +AR1H,1,IMPROPER DISPOSAL,NON-RECYC LEFT IN RECYC CONTAINER FOR COLLECTION 1TO8 DWELLING UNITS +AR1J,1,storage receptacles,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYC 1 TO 8 DWELLING UNITS +AR20,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS +AR21,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNTS +AR22,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR25,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELNG UNITS +AR26,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS +AR2E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1-8 DWELLING UNITS +AR31,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS +AR32,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS +AR33,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR34,1,RECYCLING PROGRAM,FAILURE TO ESTABLISH RECYCLING PROGRAM +AR35,1,RECYCLING PROGRAM,FAILURE TO NOTIFY EMPLOYEES ABOUT RECYCLING PROGRAM +AR36,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED +AR41,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE DESIGNATED RECYCLABLES +AR44,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED +AR46,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE NON-FOOD BEVERAGE RECYCLABLES +AR48,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYCLABLES 9+ DWELLING UNITS +AR4E,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 1 TO 8 DWELLING UNITS +AR4F,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 4 TO 8 DWELLING UNITS +AR4G,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPES MAGAZINES CARDBOARD 1 TO 8 DWELLING UNITS +AR4H,1,IMPROPER DISPOSAL,RECYC PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS +AR51,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION +AR6B,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS +AR6H,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS +AR70,1,RECYCLING PROGRAM,NO WRITTEN RECYCLING NOTICE TO TENANTS EMPLOYEES +AR76,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SEPARATION OF PAPER TRANSFER STATIONS +AR79,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL-RECYCLABLE OR COMMINGLED MATERIALS TRANSFER STN-2D +AR7C,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION 4TH OR SUBSEQUENT VIOL IN 6MON +AR7E,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 4 TO 8 DWELLING UNITS +AR7F,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 1 TO 8 DWELLING UNITS +AR7H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS +AR8G,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS +AR9H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS +ARA1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST +ARA7,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SOURCE SEPARATION 1ST +ARB1,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SINGLE STREAM 1ST +ARB4,1,IMPROPER DISPOSAL,MIXED YARD WASTE 1ST +ARC1,1,IMPROPER DISPOSAL,MIXED CONSTRUCTION AND DEMOLITION DEBRIS 1ST +ARC4,1,IMPROPER DISPOSAL,RECYCLABLES MIXED WITH OTHER RECYCLABLES SOURCE SEPARATION 1ST +ARC7,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SOURCE SEP 1ST +ARD1,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SINGLE STR 1ST +ARD7,1,IMPROPER DISPOSAL,SEPARATED RECYCLABLE MATERIALS NOT MAINTAINED PRIOR TO COLLECTION 1ST +ARE1,1,RECYCLING PROGRAM,FAIL NOTIFY TEN OCC EMPLOYEES ABT RECY REQ IN WRITING SOURCE SEP 1ST +ARE7,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SOURCE SEP 1ST +ARF1,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SINGLE ST 1ST +ARF4,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SOURCE SEP 1ST +ARF7,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SINGLE STREAM 1ST +ARG1,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SOURCE SEP 1ST +ARG4,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SINGLE STREAM 1ST +ARG7,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST +ARH1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SINGLE STREAM 1ST +ARH4,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SOURCE SEP 1ST +ARH7,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SINGLE STREAM 1ST +ARI1,1,improper signage,FAILURE TO POST SIGNAGE SOURCE SEPARATION 1ST +ARI4,1,improper signage,FAILURE TO POST SIGNAGE SINGLE STREAM 1ST +AS01,1,IMPROPER DISPOSAL,REMOVAL OF COMMERCIAL WASTE +AS03,1,littering,LITTERING 1ST OFFENSE +AS04,1,littering,SWEEP-OUT 1ST OFFENSE +AS05,1,littering,THROW-OUT 1ST OFFENSE +AS07,1,obstruction,SIDEWALK OBSTRUCTION +AS10,1,hazards,NOXIOUS LIQUIDS +AS11,1,remove,INTERFERING WITH D.S. EMPLOYEE +AS12,1,remove,UNAUTHORIZED DISTURBANCE OR REMOVAL OF RECYCLABLE MATERIALS-NO VEHICLE +AS17,1,IMPROPER DISPOSAL,SEPARATION AND WEIGHT +AS1Q,1,illegal dumping,ILLEGAL DUMPING OWNER OF VEHICLE 2ND OFFENSE +AS21,1,remove,"SNOW,ICE DIRT ON SIDEWALKS" +AS22,1,debris,"EARTH, ROCKS AND RUBBISH" +AS23,1,obstruction,STREET OBSTRUCTION +AS24,1,remove,DISABLED VEHICLE +AS26,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET +AS27,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF INFECTIOUS MEDICAL WASTE +AS28,1,hazards,IMPROPER TRANSPORT STORAGE DISPOSAL OF ASBESTOS WASTE +AS29,1,hazards,HAZARDOUS TRANSPORTATION STORAGE DISPOSAL OF ASBESTOS WASTE +AS2A,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL DSNY LITTER BASKET - 2ND OFFENSE +AS2C,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 2ND OFFENSE" +AS2D,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 3RD OFFENSE" +AS2M,1,remove,RECEIVED RECYCLABLES FOR STORAGE COLLECTION ETC. BY UNAUTH PERSONS-2ND +AS2P,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL - 1ST OFFENSE +AS30,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE +AS33,1,remove,ILLEGAL PLACEMENT OF STICKERS OR DECALS ON PUBLIC OR PRIVATE PROPERTY +AS36,1,remove,OPERATING TRANSFER STATION W O PERMIT NONPUTRESCIBLE WASTE +AS38,1,remove,OPERATING TRANSFER STATION W O PERMIT PUTRESCIBLE WASTE +AS3C,1,littering,LITTERING FROM A MOTOR VEHICLE 1ST OFFENSE +AS3F,1,spills,SPILLAGE FROM A MOTOR VEHICLE 1ST OFFENSE +AS40,1,remove,OPERATING DUMP FILL OPERATION W O PERMIT +AS41,1,remove,COMMISSIONER S RULES RE: FILL DUMP OPERATIONS +AS43,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF REGULATED HOUSEHOLD WASTE +AS44,1,remove,VEHICLE BODY - IMPROPER COLOR +AS50,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:NOT WET +AS51,1,hazards,"PRESENT FOR STORAGE ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS54,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:MIXED W OTH.WASTE +AS55,1,hazards,STORAGE OF ASBESTOS WASTE:UNCONTAINED UNSEALED +AS56,1,hazards,"STORAGE OF ASBESTOS WASTE:NOT WET,NOT 6 MIL" +AS57,1,hazards,STORAGE OF ASBESTOS WASTE:NO WARNING LABELS +AS58,1,hazards,STORAGE OF ASBESTOS WASTE:NO 24HR INSPECTION +AS59,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE SPARE LEAK-TIGHT CONTAINERS +AS60,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE WATER SUPPLY +AS61,1,hazards,STORAGE OF ASBESTOS WASTE:MIXED W OTHER WASTE +AS63,1,hazards,STORAGE OF ASBESTOS WASTE:50CUBIC YDS NO AUTHORIZATION +AS65,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS66,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:NOT WET,NOT 6 MIL" +AS69,1,hazards,PRESENT FOR TRANSPORT ASBESTOS WASTE:MIXED WITH OTHER WASTE +AS6B,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL 3RD OFFENSE +AS6M,1,dirty sidewalk,DIRTY AREA +AS6V,1,dirty sidewalk,DIRTY SIDEWALK DIRTY AREA VACANT LOT +AS72,1,hazards,"TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" +AS74,1,hazards,TRANSPORT ASBESTOS WASTE:NO WARNING LABEL +AS8C,1,storage receptacles,STORAGE OF RECEPTACLES - 2ND OFFENSE +AS8D,1,storage receptacles,STORAGE OF RECEPTACLES - 3RD OFFENSE +AS8V,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET VACANT LOT +AS92,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS +AS94,1,remove,FAILURE TO FILE DEC MEDICAL WASTE PLANS +AS95,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS +AS96,1,SANITATION VIOLATION,SANITATION VIOLATION +AS97,1,dirty sidewalk,"DIRTY SIDEWALK,FAIL TO CLEAN 18 INTO STREET,SIDEWALK OBSTRUCTION 2ND" +AS98,1,SANITATION VIOLATION,SANITATION PROVISION - UNSPECIFIED SECTION +AS9C,1,debris,LOOSE RUBBISH - 2ND OFFENSE +AS9D,1,debris,LOOSE RUBBISH - 3RD OFFENSE +AS9I,1,remove,PUBLIC URINATION 1ST OFFENSE +ASA9,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 6PM +ASAC,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 8PM WITHOUT A RECEPTACLE +ASAF,1,storage receptacles,STORAGE OF RECEPTACLE PLACED OUT PRIOR TO 8PM IN UNCOVERED RECEPTACLE +ASAI,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT PRIOR TO 4AM +ASAL,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT AFTER 7AM +ASAO,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO 8PM W O A RECEPTACLE +ASAR,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO ONE HOUR OF CLOSING +ASAU,1,storage receptacles,STORAGE OF RECEPTACLES COM FAILURE TO REMOVE RECEPTACLES +ASAX,1,storage receptacles,STORAGE OF RECEPTACLES FAILURE TO REMOVE RECEPTACLES +ASBA,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES FSE 1ST +ASBD,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERV ARTICLES MOBILE FOOD 1ST +ASC1,1,improper signage,FAIL DISPLAY OWNER INFORMATION ON PUBLICLY ACCESSIBLE COLLECTION BIN +ASC3,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN +ASC4,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN 2ND OFF +ASC7,1,storage receptacles,FAIL MAINTAIN COLLECTION BIN IN CLEAN NEAT CONDITION-PROPERTY OWNER +ASCB,1,RECYCLING PROGRAM,FAILURE TO REGISTER PUBLICLY ACCESSIBLE COLLECTION BIN WITH DSNY +ASCF,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF ELECTRONIC WASTE +ASDM,1,remove,IMPROPER RECEIPT OF A DEPARTMENT MARKED ITEM 1ST OFFENSE +ASDU,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM RPF 1ST +ASDX,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM SMF 1ST +ASF3,1,spills,SPILLAGE CONDITION FROM OVERFLOWING RECEPTACLE +ASF4,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY BAG AND OR BUNDLE REFUSE AND RECYCLABLES +ASF5,1,IMPROPER DISPOSAL,FAILURE TO PLACE BAGGED AND OR BUNDLED REFUSE AND RECY.AT PREDETER.LOC +ASGD,1,IMPROPER DISPOSAL,PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW W O CUSTOMER REQ +ASGJ,1,IMPROPER DISPOSAL,FAIL TO PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW ON REQUEST +ASGP,1,improper signage,FAIL TO DISPLAY REQUIRED SIGNAGE ABOUT PLASTIC STRAW AVAILABILITY +ASH9,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE +ASJ5,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OPERATOR -1ST +ASK4,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -1ST +ASK5,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -2ND +ASK6,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -3RD +ASK7,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OPERATOR -1ST +ASL4,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR - 1ST +ASL5,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR -2ND +ASL6,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OWNER -1ST +ASL9,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OWNER -1ST +ASM3,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OWNER -1ST +ASN6,1,remove,REMOVAL TRANSPORT OF COMMERICAL RECYCLABLE MATERIAL OWNER -1ST +ASP2,1,storage receptacles,UNCOVERED RECEPTACLES 2ND OFFENSE +ASP3,1,storage receptacles,UNCOVERED RECEPTACLES 3RD OFFENSE +ASP5,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 2ND OFFENSE +ASP6,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 3RD OFFENSE +ASP8,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 2ND OFFENSE +ASP9,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 3RD OFFENSE +ASQ5,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OPERATOR +ASQ6,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OWNER +ASR4,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS STADIUM 1ST +ASR8,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 2ND +ASR9,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 3RD+ +ASS1,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 1ST" +ASS2,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 2ND" +ASS3,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 3RD+" +ASS4,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 1ST" +ASS5,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 2ND" +ASS6,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 3RD+" +AST7,1,remove,FAIL NOTIFY DSNY REGARDING ONSITE ORGANIC WASTE PROCESSING EQUIPMENT 1 +ASU1,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 1ST +ASU2,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 2ND +ASU3,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 3RD+ +ASU7,1,IMPROPER DISPOSAL,ORGANICS PLACED OUT FOR COLLECTION IN CONTAINER W O LATCHING DEVICE 1 +ASV1,1,IMPROPER DISPOSAL,ORGANICS IN STORAGE AREA PLACED IN A CONTAINER W O LATCHING DEVICE 1ST +ASV4,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 1ST +ASV5,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 2ND +ASV6,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 3RD+ +ASW4,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 1ST +ASW5,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 2ND +ASW6,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 3RD+ +ASY0,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT-9 OR MORE DWELLING UNITS 1 +ASY4,1,IMPROPER DISPOSAL,IMPROPER DISPERSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST +ASY7,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST +ASZ1,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT- 1 TO 8 DWELLING UNITS 1ST +ASZ6,1,storage receptacles,INSUFFICIENT RECEPTACLES 3RD OFFENSE +ASZ9,1,storage receptacles,BROKEN RECEPTACLES 3RD OFFENSE +AT12,1,dirty sidewalk,FAILURE TO PROVIDE WORKING PUBLIC PAY TELEPHONE OPERATOR SERVICES +AT13,1,dirty sidewalk,FAILED TO CLEAN MAINTAIN PUBLIC PAY TELEPHONE AS PER REQMNTS OF SUBSEC +AV01,1,adandoned vehicle,ABANDONING VEHICLE +AV02,1,remove,ILLEGAL PLACEMENT POSTERS STICKERS ON WINDSHIELDS WIPERS ON VEHICLES +AW44,1,remove,ILLEGAL USE OF HYDRANT S +AW51,1,remove,FAILED TO INSTALL A BACKFLOW PREVENTER +AW55,1,remove,FAILED TO RETURN METER PERMIT +AX25,1,remove,OPEN CONTAINER CONSUMPTION OF ALCOHOL ON STREETS +AX26,1,remove,BUSINESS UTILIZING MOTORIZED SCOOTER ALLOWING EMPLOYEE TO OPERATE 1ST +AZ98,1,remove,"UNSPECIFIED LAW, CODE OR REGULATION" +AZ99,1,remove,"UNCODED LAW, RULE, OR REGULATION" +NA,1,remove,NA \ No newline at end of file From fc3df2e5b39611839d419a78723b81339423d4c7 Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 10:12:27 -0400 Subject: [PATCH 06/12] move file --- data/output/oath_charges_grouped.csv | 317 --------------------------- 1 file changed, 317 deletions(-) delete mode 100644 data/output/oath_charges_grouped.csv diff --git a/data/output/oath_charges_grouped.csv b/data/output/oath_charges_grouped.csv deleted file mode 100644 index 80d3326..0000000 --- a/data/output/oath_charges_grouped.csv +++ /dev/null @@ -1,317 +0,0 @@ -charge_1_code,n,relevant_charge,charge_1_code_description -AS18,3,storage receptacles,"STORAGE OF RECEPTACLES NON-COLLECTION DAY , STORAGE OF RECEPTACLES 1ST OCCURRENCE , STORAGE OF RECEPTACLES" -AD09,2,remove,"OBSTRUCTION OF STREET W CONSTRUCTION MATERIALS EQUIPMENT W O PERMIT , CONSTRUCTION MATERIALS EQUIPMENT STORED ON STREET W 0 PERMIT" -AR7G,2,FAILURE TO RECYCLE,"FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS , FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION(1TO8DWELLING UNITS)" -AS02,2,remove,"POSTING OF SIGN PERMIT , POSTING OF SIGN PERMIT, WASTE REMOVAL" -AS06,2,dirty sidewalk,"DIRTY SIDEWALK , DIRTY SIDEWALK DIRTY AREA" -AS08,2,debris,"DUST OR SUBSTANCES FLYING 1ST OCCURRENCE , DUST OR SUBSTANCES FLYING" -AS09,2,spills,"SPILLAGE FROM A RECEPTACLE 1ST OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE" -AS13,2,illegal dumping,"ILLEGAL DUMPING OPERATOR OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OPERATOR OF VEHICLE - 1ST AND 2ND OFFENSE" -AS14,2,illegal dumping,"ILLEGAL DUMPING OWNER OF VEHICLE 1ST OFFENSE , ILLEGAL DUMPING OWNER OF VEHICLE 1ST AND 2ND OFFENSE" -AS15,2,illegal dumping,"ILLEGAL DUMPING CITIZEN COMPLAINANT - 1ST OFFENSE , ILLEGAL DUMPING CITIZEN COMPLAINT - 1ST AND 2ND OFFENSE" -AS16,2,illegal dumping,"IMPROPER DISPOSAL 1ST OCCURRENCE , IMPROPER DISPOSAL 1ST OFFENSE" -AS19,2,debris,"LOOSE RUBBISH 1ST OCCURRENCE , LOOSE RUBBISH" -AS20,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL DSNY LITTER BASKET 1ST OFFENSE , IMPROPER USE OF DSNY LITTER BASKET" -AS37,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULE RE: NONPUTRESCIBLE WASTE" -AS39,2,NONPUTRESCIBLE WASTE,"COMMISSIONER S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE , COMMISSIONER'S TRANSFER STATION RULES RE: PUTRESCIBLE WASTE" -AS9A,2,spills,"SPILLAGE FROM A RECEPTACLE 2ND OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, SECOND OFFENSE" -AS9B,2,spills,"SPILLAGE FROM A RECEPTACLE 3RD OFFENSE , SPILLAGE FROM TRUCK OR RECEPTACLE, THIRD OFFENSE" -ASBG,2,not related,"POSSESS SELL OFFER POLYSTYRENE SINGLE SERVICE ARTICLE STORE 1ST , POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES STORE 1ST" -ASP1,2,storage receptacles,"UNCOVERED RECEPTACLES 1ST OCCURRENCE , UNCOVERED RECEPTACLES 1ST OFFENSE" -ASP4,2,IMPROPER DISPOSAL,"IMPROPER DISPOSAL--BEDDING 1ST OCCURRENCE , IMPROPER DISPOSAL BEDDING 1ST OFFENSE" -ASP7,2,storage receptacles,"IMPROPER RECEPTACLES 1ST OCCURRENCE , IMPROPER RECEPTACLES 1ST OFFENSE" -ASR7,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS HOTEL 100 OR MORE ROOMS 1ST , FAILURE TO RECYCLE ORGANICS HOTEL 1ST" -ASU4,2,FAILURE TO RECYCLE,"ORGANICS MIXED WITH NON-ORGANICS MATERIALS 1ST , ORGANICS MIXED WITH NON-ORGANIC MATERIALS 1ST" -ASX1,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE AT LEAST 7,000 SQUARE FEET 1ST , FAIL TO RECYCLE ORGANICS FSE AT LEAST 15,000 SQ FT 1ST OFFENSE" -ASX4,2,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FSE CHAIN 2 OR MORE 1ST , FAIL TO RECYCLE ORGANICS FSE CHAIN 100 OR MORE 1ST OFFENSE" -ASX7,2,FAILURE TO RECYCLE,"FAIL TO RECYCLE ORGANICS, FOOD STORE AT LEAST 10,000 SQFT CHAIN 1ST , FAIL TO RECYCLE ORGANICS RETAIL FOOD STORE AT LEAST 25000 SQ FT 1ST" -ASZ4,2,storage receptacles,"INSUFFICIENT RECEPTACLES 1ST OCCURRENCE , INSUFFICIENT RECEPTACLES 1ST OFFENSE" -ASZ7,2,storage receptacles,"BROKEN RECEPTACLES 1ST OCCURRENCE , BROKEN RECEPTACLES 1ST OFFENSE" -A190,1,remove,PERFORMING PLUMBING WORK WITHOUT A MASTER PLUMBER LICENSE -A1D1,1,remove,UNLAWFUL ADVERTISEMENT FOR CERTAIN OCCUPANCIES - 3RD OFFENSE OR MORE -AA03,1,remove,"FAILURE TO COMPLY WITH DIRECTIVES OF POLICE,PARK SUPERVISOR,LIFEGUARD" -AA04,1,remove,FAILURE TO COMPLY WITH DIRECTIONS PROHIBITIONS ON SIGNS -AA06,1,remove,"CUTTING, REMOVAL, OR DESTRUCTION OF A TREE" -AA13,1,illegal dumping,UNLAWFUL DUMPING -AA35,1,remove,UNAUTHORIZED CONSUMPTION POSSESSION OF ALCOHOLIC BEVERAGE -AA75,1,remove,SMOKING IN A PARK OR ON OTHER PROPERTY UNDER JURISDICTION OF DEPT. -AB01,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF LEAD ACID BATTERY -AD06,1,improper signage,IDENTIFYING SIGNS IMPROPERLY DISPLAYED OR MISSING -AD07,1,remove,CONSTRUCTING VAULT W O LICENSE OR REVOCABLE CONSENT -AD18,1,remove,CANOPY WITHOUT PERMIT -AD19,1,remove,POST POLE FLAGPOLE SOCKET LAMPPOST W O PERMIT CONSENT -AD30,1,remove,FAILURE TO COMPLY WITH THE TERMS AND CONDITIONS OF DOT PERMITS -AD6L,1,remove,"RIGHT OF WAY - FAILURE TO YIELD, PHYSICAL INJURY" -AD6M,1,remove,LEAVING THE SCENE - PROPERTY DAMAGE FIRST OFFENSE -ADC9,1,storage receptacles,FAIL TO HAVE PROPER ST PROTECTION UNDER COMMERCIAL REFUSE CONTAINER -ADF3,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 1ST OFFENSE -ADF4,1,remove,FAIL TO PROVIDE EQUIPMENT TO COMMERCIAL BICYCLE OPERATOR 2ND+ OFFENSE -ADP4,1,remove,FAILURE TO DISPLAY INTERCITY BUS PERMIT- 2ND SUBSEQUENT OFFENSE -AE24,1,remove,EMISSION OF ODOROUS AIR CONTAMINANT 1ST OFF -AE27,1,remove,EMISSION OF AIR CONTAMINANT FROM VEHICLE 1ST OFFENSE -AE38,1,remove,AIR CONTAMINANT FROM OPEN FIRE -AE51,1,remove,IDLING OF MOTOR VEHICLE ENGINE MORE THAN THREE MINUTES 1ST OFF -AF25,1,remove,NA -AF99,1,remove,NYC HEALTH CODE PROVISION - MISCELLANEOUS -AFJ3,1,remove,MFVU UNSECURED WHEN LEFT UNATTENDED FOR MORE THAN ONE-HALF HOUR -AFK2,1,spills,SOLID AND LIQUID WASTE CAUSED BY THE OPERATION OF THE UNIT NOT COLLECT -AFW3,1,remove,OPERATING A MFVU UNIT WITHOUT A PERMIT IN ANY PUBLIC SPACE -AFW5,1,remove,OPERATING A MFVU IN ANY PUBLIC SPACE WITHOUT A LICENSE -AFY3,1,remove,ITEMS NOT IN OR UNDER CART EXCEPT WASTE CONTAINER -AFY4,1,remove,VENDING AT TIME OR PLACE PROHIBITED -AFY6,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT., OR NOT AT CURB" -AFY8,1,remove,PUSHCART TOUCHING OR LEANING AGAINST BUILDING -AFY9,1,remove,"VENDING IN BUS STOP, SIDEWALK NEXT TO A HOSPITAL OR HEALTH FACILITY" -AFZ5,1,spills,"FAILURE TO REMOVE AND CLEAN AREA OF ANY WASTE, DEBRIS OR FOOD SPILLAGE" -AG01,1,remove,UNLICENSED GENERAL VENDOR INCLUDING CONT D UNLICENSED ACTIVITY 1ST -AG11,1,remove,"VENDING ON SIDEWALK LESS THAN 12 FT. WIDE, OR NOT AT CURB 1ST" -AG12,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST -AG14,1,remove,STAND GOODS AGAINST DISPLAY WINDOW WITHIN 20 FT. OF EXITS 1ST -AG15,1,remove,VENDING IN PROHIBITED AREA OF SIDEWALK OR STREET 1ST -AG21,1,remove,VEND AT TIMES PLACES RESTRICTED BY VENDOR REVIEW PANEL 1ST -AG23,1,remove,"VEND ON VENT, CELLAR DOOR, MANHOLE, OR SUBWAY GRATING 1ST" -AG25,1,remove,VENDING FROM A PARKED MOTOR VEHICLE 1ST -AG26,1,remove,ILLEGAL USE OF ELECTRICAL OIL GAS POWERED DEVICE -AG27,1,remove,VENDING TOO CLOSE TO PROHIBITED PLACES 1ST -AGE3,1,remove,USING MORE THAN 8 FT. PARALLEL TO CURB OR 3 FT. FROM CURB 1ST -AGE7,1,remove,VENDING WITHIN 20 FT FROM ENTRANCE EXIT OF BUILDING 1ST -AGF6,1,remove,VEND W IN 5FT OF BUS SHELTER NEWSSTAND PUBLIC PHONE DISABLE RAMP 1ST -AGI7,1,remove,VENDING ON SIDEWALK LESS THAN 10 FEET MIDTOWN 1ST -AH2I,1,remove,TRANSFER OF FOOD TO UNLICENSED VENDOR -AH30,1,IMPROPER DISPOSAL,FAILURE TO REMOVE LOCKING DEVICE FROM DISCARDED REFRIGERATOR -AH3G,1,IMPROPER DISPOSAL,IMPROPER GARBAGE COLLECTION AND OR DISPOSAL -AH3I,1,spills,FAILURE TO PROPERLY REMOVE AND OR CLEAN DEBRIS AND CONSUMER LITTER -AH50,1,rats,RAT OR OTHER PEST INFESTATION -AH61,1,remove,CONTROL OF DOGS AND OTHER ANIMALS TO PREVENT NUISANCE -AH62,1,remove,DOGS TO BE RESTRAINED -AHG3,1,remove,"DOG, CAT NOT TIMELY EUTHANIZED" -AHH8,1,remove,FAILURE TO TAKE REASONABLE PRECAUTIONS TO PROTECT HEALTH AND SAFETY -AHJ5,1,remove,FAIL TO COMPLY WITH EXEC ORDER 228 AS EXTENDED 1ST OFFENSE -AK09,1,spills,FAILURE TO REMOVE CANINE WASTE -AN62,1,remove,UNAUTHORIZED USE OF MOTOR VEHICLE CLAXON -AR01,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 9+ DWELLING UNITS -AR02,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 9+ DWELLING UNITS -AR03,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9+ DWELLING UNITS -AR04,1,storage receptacles,NO ACCESSABLE RECYCLING STORAGE AREA 9+ DWELLING UNITS -AR05,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 9+ DWELLING UNITS -AR06,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINERS 9+ DWELLING UNITS -AR07,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS -AR08,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS -AR09,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 9+ DWELLING UNITS -AR10,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS -AR11,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION WITH NON-RECYC 9+ DWELLING UNITS -AR12,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER NINE OR MORE DWLNG UNITS -AR14,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELLING UNIT -AR15,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS -AR17,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 9+ DWELLING UNITS -AR18,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 9 OR MORE DWELLING UNITS -AR19,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPERS MAGAZINES CARDBOARD 9+ DWELLING UNITS -AR1A,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 9+ DWELLING UNITS -AR1E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1 TO 8 DWELLING UNITS -AR1F,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 4 TO 8 DWELLING UNITS -AR1G,1,storage receptacles,FAILURE TO CLEAN RECYCLABLES 1 TO 8 DWELLING UNITS -AR1H,1,IMPROPER DISPOSAL,NON-RECYC LEFT IN RECYC CONTAINER FOR COLLECTION 1TO8 DWELLING UNITS -AR1J,1,storage receptacles,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYC 1 TO 8 DWELLING UNITS -AR20,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS -AR21,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNTS -AR22,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS -AR25,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 9 OR MORE DWELNG UNITS -AR26,1,storage receptacles,NO ACCESSIBLE RECYCLING STORAGE AREA 9 OR MORE DWELLING UNITS -AR2E,1,IMPROPER DISPOSAL,IMPROPER MISUSED CURBSIDE RECYCLING CONTAINER 1-8 DWELLING UNITS -AR31,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCLS OUT FOR COLLECTION 9+ DWELLING UNITS -AR32,1,IMPROPER DISPOSAL,NON-RECYCLABLES IN RECYC. CONTAINER FOR COLLECTION 9+ DWELLING UNITS -AR33,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS -AR34,1,RECYCLING PROGRAM,FAILURE TO ESTABLISH RECYCLING PROGRAM -AR35,1,RECYCLING PROGRAM,FAILURE TO NOTIFY EMPLOYEES ABOUT RECYCLING PROGRAM -AR36,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED -AR41,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE DESIGNATED RECYCLABLES -AR44,1,improper signage,RECYCLING CONTAINERS NOT PROVIDED NOT LABELED -AR46,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE NON-FOOD BEVERAGE RECYCLABLES -AR48,1,IMPROPER DISPOSAL,FAILURE TO SOURCE SEPARATE RESIDENTIAL RECYCLABLES 9+ DWELLING UNITS -AR4E,1,IMPROPER DISPOSAL,IMPROPER MISUSED MECHANIZED RECYCLING CONTAINER 1 TO 8 DWELLING UNITS -AR4F,1,storage receptacles,INADEQUATE RECYCLING CONTAINERS IN STORAGE AREA 4 TO 8 DWELLING UNITS -AR4G,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPES MAGAZINES CARDBOARD 1 TO 8 DWELLING UNITS -AR4H,1,IMPROPER DISPOSAL,RECYC PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS -AR51,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION -AR6B,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYCL 9+ DWELLING UNITS -AR6H,1,IMPROPER DISPOSAL,RECYCLABLES PLACED FOR COLLECTION W NON-RECYC 1 TO 8 DWELLING UNITS -AR70,1,RECYCLING PROGRAM,NO WRITTEN RECYCLING NOTICE TO TENANTS EMPLOYEES -AR76,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SEPARATION OF PAPER TRANSFER STATIONS -AR79,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL-RECYCLABLE OR COMMINGLED MATERIALS TRANSFER STN-2D -AR7C,1,IMPROPER DISPOSAL,FAILURE TO MAINTAIN SOURCE SEPARATION 4TH OR SUBSEQUENT VIOL IN 6MON -AR7E,1,improper signage,FAILURE TO POST NOTICES INFORM ABOUT RECYCLING 4 TO 8 DWELLING UNITS -AR7F,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF RECYC MISUSE OF CONTAINER 1 TO 8 DWELLING UNITS -AR7H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS -AR8G,1,FAILURE TO RECYCLE,FAILURE TO PROPERLY PUT RECYCS OUT FOR COLLECTION 1TO8DWELLING UNITS -AR9H,1,IMPROPER DISPOSAL,FAIL TO COMPLY W COMM.ORDER TO USE CLEAR BAGS 4-8 DWELLING UNITS -ARA1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST -ARA7,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SOURCE SEPARATION 1ST -ARB1,1,IMPROPER DISPOSAL,FAILURE TO BUNDLE NEWSPAPER CARDBOARD SINGLE STREAM 1ST -ARB4,1,IMPROPER DISPOSAL,MIXED YARD WASTE 1ST -ARC1,1,IMPROPER DISPOSAL,MIXED CONSTRUCTION AND DEMOLITION DEBRIS 1ST -ARC4,1,IMPROPER DISPOSAL,RECYCLABLES MIXED WITH OTHER RECYCLABLES SOURCE SEPARATION 1ST -ARC7,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SOURCE SEP 1ST -ARD1,1,IMPROPER DISPOSAL,COMMINGLING OF DESIGNATED RECYCLABLES WITH SOLID WASTE SINGLE STR 1ST -ARD7,1,IMPROPER DISPOSAL,SEPARATED RECYCLABLE MATERIALS NOT MAINTAINED PRIOR TO COLLECTION 1ST -ARE1,1,RECYCLING PROGRAM,FAIL NOTIFY TEN OCC EMPLOYEES ABT RECY REQ IN WRITING SOURCE SEP 1ST -ARE7,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SOURCE SEP 1ST -ARF1,1,improper signage,FAILURE TO POST SIGNAGE IN STORAGE AREA SINGLE ST 1ST -ARF4,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SOURCE SEP 1ST -ARF7,1,improper signage,FAILURE TO POST SIGNAGE PUBLIC AREA SINGLE STREAM 1ST -ARG1,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SOURCE SEP 1ST -ARG4,1,improper signage,UNLABELED RECYCLING CONTAINER OWNER LESSEE SINGLE STREAM 1ST -ARG7,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SOURCE SEPARATION 1ST -ARH1,1,IMPROPER DISPOSAL,FAILURE TO SEPARATE RECYCLABLES SINGLE STREAM 1ST -ARH4,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SOURCE SEP 1ST -ARH7,1,improper signage,UNLABELED RECYCLING CONTAINER TENANT OCCUPANT SINGLE STREAM 1ST -ARI1,1,improper signage,FAILURE TO POST SIGNAGE SOURCE SEPARATION 1ST -ARI4,1,improper signage,FAILURE TO POST SIGNAGE SINGLE STREAM 1ST -AS01,1,IMPROPER DISPOSAL,REMOVAL OF COMMERCIAL WASTE -AS03,1,littering,LITTERING 1ST OFFENSE -AS04,1,littering,SWEEP-OUT 1ST OFFENSE -AS05,1,littering,THROW-OUT 1ST OFFENSE -AS07,1,obstruction,SIDEWALK OBSTRUCTION -AS10,1,hazards,NOXIOUS LIQUIDS -AS11,1,remove,INTERFERING WITH D.S. EMPLOYEE -AS12,1,remove,UNAUTHORIZED DISTURBANCE OR REMOVAL OF RECYCLABLE MATERIALS-NO VEHICLE -AS17,1,IMPROPER DISPOSAL,SEPARATION AND WEIGHT -AS1Q,1,illegal dumping,ILLEGAL DUMPING OWNER OF VEHICLE 2ND OFFENSE -AS21,1,remove,"SNOW,ICE DIRT ON SIDEWALKS" -AS22,1,debris,"EARTH, ROCKS AND RUBBISH" -AS23,1,obstruction,STREET OBSTRUCTION -AS24,1,remove,DISABLED VEHICLE -AS26,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET -AS27,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF INFECTIOUS MEDICAL WASTE -AS28,1,hazards,IMPROPER TRANSPORT STORAGE DISPOSAL OF ASBESTOS WASTE -AS29,1,hazards,HAZARDOUS TRANSPORTATION STORAGE DISPOSAL OF ASBESTOS WASTE -AS2A,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL DSNY LITTER BASKET - 2ND OFFENSE -AS2C,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 2ND OFFENSE" -AS2D,1,remove,"SNOW, ICE DIRT ON SIDEWALKS - 3RD OFFENSE" -AS2M,1,remove,RECEIVED RECYCLABLES FOR STORAGE COLLECTION ETC. BY UNAUTH PERSONS-2ND -AS2P,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL - 1ST OFFENSE -AS30,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE -AS33,1,remove,ILLEGAL PLACEMENT OF STICKERS OR DECALS ON PUBLIC OR PRIVATE PROPERTY -AS36,1,remove,OPERATING TRANSFER STATION W O PERMIT NONPUTRESCIBLE WASTE -AS38,1,remove,OPERATING TRANSFER STATION W O PERMIT PUTRESCIBLE WASTE -AS3C,1,littering,LITTERING FROM A MOTOR VEHICLE 1ST OFFENSE -AS3F,1,spills,SPILLAGE FROM A MOTOR VEHICLE 1ST OFFENSE -AS40,1,remove,OPERATING DUMP FILL OPERATION W O PERMIT -AS41,1,remove,COMMISSIONER S RULES RE: FILL DUMP OPERATIONS -AS43,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF REGULATED HOUSEHOLD WASTE -AS44,1,remove,VEHICLE BODY - IMPROPER COLOR -AS50,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:NOT WET -AS51,1,hazards,"PRESENT FOR STORAGE ASBESTOS WASTE:UNCONTAINED,UNSEALED" -AS54,1,hazards,PRESENT FOR STORAGE ASBESTOS WASTE:MIXED W OTH.WASTE -AS55,1,hazards,STORAGE OF ASBESTOS WASTE:UNCONTAINED UNSEALED -AS56,1,hazards,"STORAGE OF ASBESTOS WASTE:NOT WET,NOT 6 MIL" -AS57,1,hazards,STORAGE OF ASBESTOS WASTE:NO WARNING LABELS -AS58,1,hazards,STORAGE OF ASBESTOS WASTE:NO 24HR INSPECTION -AS59,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE SPARE LEAK-TIGHT CONTAINERS -AS60,1,hazards,STORAGE OF ASBESTOS WASTE:INADEQUATE WATER SUPPLY -AS61,1,hazards,STORAGE OF ASBESTOS WASTE:MIXED W OTHER WASTE -AS63,1,hazards,STORAGE OF ASBESTOS WASTE:50CUBIC YDS NO AUTHORIZATION -AS65,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" -AS66,1,hazards,"PRESENT FOR TRANSPORT ASBESTOS WASTE:NOT WET,NOT 6 MIL" -AS69,1,hazards,PRESENT FOR TRANSPORT ASBESTOS WASTE:MIXED WITH OTHER WASTE -AS6B,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL 3RD OFFENSE -AS6M,1,dirty sidewalk,DIRTY AREA -AS6V,1,dirty sidewalk,DIRTY SIDEWALK DIRTY AREA VACANT LOT -AS72,1,hazards,"TRANSPORT ASBESTOS WASTE:UNCONTAINED,UNSEALED" -AS74,1,hazards,TRANSPORT ASBESTOS WASTE:NO WARNING LABEL -AS8C,1,storage receptacles,STORAGE OF RECEPTACLES - 2ND OFFENSE -AS8D,1,storage receptacles,STORAGE OF RECEPTACLES - 3RD OFFENSE -AS8V,1,dirty sidewalk,FAILURE TO CLEAN 18 INCHES INTO STREET VACANT LOT -AS92,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS -AS94,1,remove,FAILURE TO FILE DEC MEDICAL WASTE PLANS -AS95,1,remove,FAILURE TO FILE MEDICAL WASTE PLANS AMENDED PLANS -AS96,1,SANITATION VIOLATION,SANITATION VIOLATION -AS97,1,dirty sidewalk,"DIRTY SIDEWALK,FAIL TO CLEAN 18 INTO STREET,SIDEWALK OBSTRUCTION 2ND" -AS98,1,SANITATION VIOLATION,SANITATION PROVISION - UNSPECIFIED SECTION -AS9C,1,debris,LOOSE RUBBISH - 2ND OFFENSE -AS9D,1,debris,LOOSE RUBBISH - 3RD OFFENSE -AS9I,1,remove,PUBLIC URINATION 1ST OFFENSE -ASA9,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 6PM -ASAC,1,storage receptacles,STORAGE OF RECEPTACLES PLACED OUT PRIOR TO 8PM WITHOUT A RECEPTACLE -ASAF,1,storage receptacles,STORAGE OF RECEPTACLE PLACED OUT PRIOR TO 8PM IN UNCOVERED RECEPTACLE -ASAI,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT PRIOR TO 4AM -ASAL,1,storage receptacles,STORAGE OF RECEPTACLES MBCP PLACED OUT AFTER 7AM -ASAO,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO 8PM W O A RECEPTACLE -ASAR,1,storage receptacles,STORAGE OF RECEPTACLES COM PLACED OUT PRIOR TO ONE HOUR OF CLOSING -ASAU,1,storage receptacles,STORAGE OF RECEPTACLES COM FAILURE TO REMOVE RECEPTACLES -ASAX,1,storage receptacles,STORAGE OF RECEPTACLES FAILURE TO REMOVE RECEPTACLES -ASBA,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERVICE ARTICLES FSE 1ST -ASBD,1,remove,POSSESS SELL OR OFFER POLYSTYRENE SINGLE SERV ARTICLES MOBILE FOOD 1ST -ASC1,1,improper signage,FAIL DISPLAY OWNER INFORMATION ON PUBLICLY ACCESSIBLE COLLECTION BIN -ASC3,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN -ASC4,1,storage receptacles,ILLEGAL PLACEMENT OF PUBLICLY ACCESSIBLE COLLECTION BIN 2ND OFF -ASC7,1,storage receptacles,FAIL MAINTAIN COLLECTION BIN IN CLEAN NEAT CONDITION-PROPERTY OWNER -ASCB,1,RECYCLING PROGRAM,FAILURE TO REGISTER PUBLICLY ACCESSIBLE COLLECTION BIN WITH DSNY -ASCF,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF ELECTRONIC WASTE -ASDM,1,remove,IMPROPER RECEIPT OF A DEPARTMENT MARKED ITEM 1ST OFFENSE -ASDU,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM RPF 1ST -ASDX,1,remove,FAIL TO SUBMIT QUARTERLY REPORT IN ACCEPTABLE MANNER FORM SMF 1ST -ASF3,1,spills,SPILLAGE CONDITION FROM OVERFLOWING RECEPTACLE -ASF4,1,IMPROPER DISPOSAL,FAILURE TO PROPERLY BAG AND OR BUNDLE REFUSE AND RECYCLABLES -ASF5,1,IMPROPER DISPOSAL,FAILURE TO PLACE BAGGED AND OR BUNDLED REFUSE AND RECY.AT PREDETER.LOC -ASGD,1,IMPROPER DISPOSAL,PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW W O CUSTOMER REQ -ASGJ,1,IMPROPER DISPOSAL,FAIL TO PROVIDE SINGLE-USE NONCOMPOSTABLE PLASTIC STRAW ON REQUEST -ASGP,1,improper signage,FAIL TO DISPLAY REQUIRED SIGNAGE ABOUT PLASTIC STRAW AVAILABILITY -ASH9,1,remove,ILLEGAL POSTING OF HANDBILL NOTICE -ASJ5,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OPERATOR -1ST -ASK4,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -1ST -ASK5,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -2ND -ASK6,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OPERATOR -3RD -ASK7,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OPERATOR -1ST -ASL4,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR - 1ST -ASL5,1,remove,REMOVAL TRANSPORT OF COMMERCIAL RECYCLABLE MATERIAL OPERATOR -2ND -ASL6,1,remove,REMOVAL TRANSPORT OF RESIDENTIAL RECYCLABLE MATERIAL OWNER -1ST -ASL9,1,remove,REMOVAL TRANSPORT OF REFRIGERANT CONTAINING ITEM OWNER -1ST -ASM3,1,remove,REMOVAL TRANSPORT OF DEPARTMENT-MARKED ITEM OWNER -1ST -ASN6,1,remove,REMOVAL TRANSPORT OF COMMERICAL RECYCLABLE MATERIAL OWNER -1ST -ASP2,1,storage receptacles,UNCOVERED RECEPTACLES 2ND OFFENSE -ASP3,1,storage receptacles,UNCOVERED RECEPTACLES 3RD OFFENSE -ASP5,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 2ND OFFENSE -ASP6,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL BEDDING 3RD OFFENSE -ASP8,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 2ND OFFENSE -ASP9,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLES 3RD OFFENSE -ASQ5,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OPERATOR -ASQ6,1,remove,USING VEHICLE TO ACCEPT RECEIVE COLLECT BULK RECYCLABLES-OWNER -ASR4,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS STADIUM 1ST -ASR8,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 2ND -ASR9,1,FAILURE TO RECYCLE,FAILURE TO RECYCLE ORGANICS HOTEL 3RD+ -ASS1,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 1ST" -ASS2,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 2ND" -ASS3,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD MANUFACTURE 25,000 SQUARE FEET 3RD+" -ASS4,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 1ST" -ASS5,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 2ND" -ASS6,1,FAILURE TO RECYCLE,"FAILURE TO RECYCLE ORGANICS FOOD WHOLESALER 20,000 SQUARE FEET 3RD+" -AST7,1,remove,FAIL NOTIFY DSNY REGARDING ONSITE ORGANIC WASTE PROCESSING EQUIPMENT 1 -ASU1,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 1ST -ASU2,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 2ND -ASU3,1,improper signage,ORGANICS CONTAINERS NOT LABELLED 3RD+ -ASU7,1,IMPROPER DISPOSAL,ORGANICS PLACED OUT FOR COLLECTION IN CONTAINER W O LATCHING DEVICE 1 -ASV1,1,IMPROPER DISPOSAL,ORGANICS IN STORAGE AREA PLACED IN A CONTAINER W O LATCHING DEVICE 1ST -ASV4,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 1ST -ASV5,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 2ND -ASV6,1,improper signage,FAILURE TO POST PRIVATE CARTER STICKER ORGANICS 3RD+ -ASW4,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 1ST -ASW5,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 2ND -ASW6,1,improper signage,FAILURE TO POST SIGNAGE IN ORGANICS COLLECTION AREAS 3RD+ -ASY0,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT-9 OR MORE DWELLING UNITS 1 -ASY4,1,IMPROPER DISPOSAL,IMPROPER DISPERSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST -ASY7,1,IMPROPER DISPOSAL,IMPROPER DISPOSAL OF YARD WASTE BUSINESS GENERATING YARD WASTE 1ST -ASZ1,1,IMPROPER DISPOSAL,IMPROPER RECEPTACLE FOR YARD WASTE RESIDENT- 1 TO 8 DWELLING UNITS 1ST -ASZ6,1,storage receptacles,INSUFFICIENT RECEPTACLES 3RD OFFENSE -ASZ9,1,storage receptacles,BROKEN RECEPTACLES 3RD OFFENSE -AT12,1,dirty sidewalk,FAILURE TO PROVIDE WORKING PUBLIC PAY TELEPHONE OPERATOR SERVICES -AT13,1,dirty sidewalk,FAILED TO CLEAN MAINTAIN PUBLIC PAY TELEPHONE AS PER REQMNTS OF SUBSEC -AV01,1,adandoned vehicle,ABANDONING VEHICLE -AV02,1,remove,ILLEGAL PLACEMENT POSTERS STICKERS ON WINDSHIELDS WIPERS ON VEHICLES -AW44,1,remove,ILLEGAL USE OF HYDRANT S -AW51,1,remove,FAILED TO INSTALL A BACKFLOW PREVENTER -AW55,1,remove,FAILED TO RETURN METER PERMIT -AX25,1,remove,OPEN CONTAINER CONSUMPTION OF ALCOHOL ON STREETS -AX26,1,remove,BUSINESS UTILIZING MOTORIZED SCOOTER ALLOWING EMPLOYEE TO OPERATE 1ST -AZ98,1,remove,"UNSPECIFIED LAW, CODE OR REGULATION" -AZ99,1,remove,"UNCODED LAW, RULE, OR REGULATION" -NA,1,remove,NA \ No newline at end of file From 944aaa78f1b3850a795fb68c993a6b9822bac20e Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 11:05:53 -0400 Subject: [PATCH 07/12] code tweaks --- code/dirty_sidewalk_oath/01_oath_charges.R | 35 ++-- .../02_oath_eda_cleaning.R | 49 +++-- .../03_oath_cats_api_pull.R | 182 +++++++++--------- code/dirty_sidewalk_oath/04_oath_summaries.R | 70 +++---- 4 files changed, 182 insertions(+), 154 deletions(-) diff --git a/code/dirty_sidewalk_oath/01_oath_charges.R b/code/dirty_sidewalk_oath/01_oath_charges.R index 6229823..4501023 100644 --- a/code/dirty_sidewalk_oath/01_oath_charges.R +++ b/code/dirty_sidewalk_oath/01_oath_charges.R @@ -1,12 +1,12 @@ -source('code/00_load_dependencies.R') - ########################################################### -# RUN THIS PART ONLY IF ITS THE FIRST TIME +# YOUR CAN SKIP THIS FILE +# RUN THIS PART ONLY IF ITS THE FIRST TIME !!! # RUN TO OBTAIN SANITATION RELATED CODES ########################################################## -# read in OATH data -# https://data.cityofnewyork.us/City-Government/OATH-Hearings-Division-Case-Status/jz4z-kudi +source('code/00_load_dependencies.R') + +# read in OATH data : https://data.cityofnewyork.us/City-Government/OATH-Hearings-Division-Case-Status/jz4z-kudi # OATH Violations where Sanitation is the issuing agency from 2018 to Present sanitation_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=issuing_agency%20like%20%27%25SANITATION%25%27%20and%20violation_date%20%3E=%20%272018-01-01%27") @@ -24,21 +24,24 @@ charge_summary <- raw_oath_bit %>% unique(charge_1_code_description))),collapse = " , ")) %>% as.data.frame() -write_csv(charge_summary, "data/output/oath_charges.csv") +#write_csv(charge_summary, "data/output/oath_codes/oath_charges.csv") # I manually grouped charge codes into categories in excel ------- # I read in the edited oath_charges csv & saved as oath_charges_grouped -cats <- read_csv("data/output/oath_charges.csv") -write_csv(cats, "data/output/oath_charges_grouped.csv") +cats <- read_csv("data/output/oath_codes/oath_charges.csv") +#write_csv(cats, "data/output/oath_codes/oath_charges_grouped.csv") + + +# code for eda - 02_oath_eda_cleaning --------- +# read in categories to filter data +cats <- read_csv("data/output/oath_codes/charges_grouped_table.csv") +# unnest grouped code for matching later +cats_unnested <- cats %>% + mutate(list_code = map(list_code, ~tibble(list_code = .))) %>% + unnest(list_code) -# unused code --------- -# # read in categories to filter data -# cats <- read_csv("data/output/charges_grouped_table.csv") -# -# # unnest grouped code for matching later -# cats_unnested <- cats %>% -# mutate(list_code = map(list_code, ~tibble(list_code = .))) %>% -# unnest(list_code) \ No newline at end of file +# add categorization to main oath dataset +raw_oath_cats <- raw_oath_bit %>% left_join(cats_unnested, by=c('charge_1_code'='list_code')) diff --git a/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R b/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R index 785cd34..ef0c88d 100644 --- a/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R +++ b/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R @@ -1,19 +1,14 @@ -# quick summary/eda look at the dataset ------------- -# options(scipen = 999) -# skimr::skim(raw_oath_cats) -# t <- sort(table(raw_oath_cats$relevant_charge), decreasing = T) -# prop.table(t)*100 +########################################################### +# YOU CAN SKIP THIS FILE +# RUN THIS PART ONLY TO GO OVER EDA !!! +########################################################## -# may be worth pulling oath violations by identified charge codes in case issuing agency is mislabeled -# - dirty sidewalk makes about 60% of sanitation violations, -# - rats, abandoned vehicle make less than 0.001% -# - illegal dumping makes 0.3% -# -# - drop violation_location_floor, violation_description 100% missing -# - there are no dup oaths 100% unique -# - 5% of entries missing bbls info -# - 1% missing address info -# - 2% missing zipcode +source('code/00_load_dependencies.R') +# quick summary/eda look at the dataset ------------- +options(scipen = 999) +skimr::skim(raw_oath_cats) +t <- sort(table(raw_oath_cats$relevant_charge), decreasing = T) +prop.table(t)*100 prep_oath <- raw_oath_cats %>% @@ -39,4 +34,28 @@ prep_oath <- raw_oath_cats %>% missing_bbl <- prep_oath %>% filter(bbl %in% bbl[nchar(bbl)<10]) skimr::skim(missing_bbl) + +############################## +## EDA TAKEAWAYS !!!!!!!! ------------- + # half have house number and 99% have street number, maybe can get street centriod +# may be worth pulling oath violations by identified charge codes in case issuing agency is mislabeled or other agencies give out sanitation related violations as well + +# - dirty sidewalk makes about 60% of sanitation violations, +# - rats, abandoned vehicle make less than 0.001% +# - illegal dumping makes 0.3% +# +# - drop violation_location_floor, violation_description 100% missing +# - there are no dup oaths, 100% unique +# - 5% of entries missing bbl info +# - 1% missing address info +# - 2% missing zipcode + +# check all vios to sanitation subset to see if there are different trends +master_vios <- vroom("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$select=violation_date,date_extract_y(violation_date)", delim = ",") + +master_vios_clean <-master_vios %>% + filter(date_extract_y_violation_date<=2023) %>% + mutate(month = floor_date(as_date(violation_date), "month")) + +table(master_vios_clean$date_extract_y_violation_date) diff --git a/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R b/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R index 5e56b2f..3b090e6 100644 --- a/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R +++ b/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R @@ -1,41 +1,44 @@ ############################################################ # Pull from API each category's codes to get all OATH violations, not just issued by Sanitation ##################################################### - - +cats <- read_csv("data/output/oath_codes/oath_charges_grouped.csv") # combine codes into groupings -------------- -cats <- read_csv("data/output/oath_charges_grouped.csv") cats_r <- cats %>% group_by(relevant_charge) %>% summarise(list_code = list(unique(charge_1_code)), n_code = lengths(list_code), - charge_1_code = paste0(unlist(list(unique(charge_1_code))),collapse = " , "), + charge_1_code = paste0(unlist( + list(unique(charge_1_code))),collapse = " , "), list_desc = list(unique(charge_1_code_description)), n_desc = sum(n), - charge_1_code_description = paste0(unlist(list( - unique(charge_1_code_description))),collapse = " , ")) %>% as.data.frame() - - - -# side: improper use of dsny litter basket ------ + charge_1_code_description = paste0(unlist( + list(unique(charge_1_code_description))), + collapse = " , ")) %>% + as.data.frame() -basket_url <- c('https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=litter%20basket') +############################################################ +# FINAL CATEGORIES USED FROM SANITATION BRIEFING FEEDBACK +############################################################ -litter_basket <- vroom(basket_url, col_select = c(1:15,23:24,34:42)) +# CAN BE MADE MORE EFFICIENT - WRITE UP A FUNCTION FOR THIS! # 1: illegal dumping ------ +# print codes cats_r$charge_1_code[which( cats_r$relevant_charge %in% c('illegal dumping'))] illdump_url<- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272022-08-01T00:00:00%27%20AND%20charge_1_code%20in(%27AS13%27,%27AS14%27,%27AS15%27,%27AS16%27,%27AA13%27,%27AS1Q%27)") -illegal_dumping <- vroom(illdump_url, col_select = c(1:15,23:24,34:42)) +illegal_dumping <- vroom(illdump_url, + col_select = c(1:15,23:24,34:42)) illegal_dumping$category <- rep('Illegal Dumping', nrow(illegal_dumping)) # 2: debris + littering + spill ------------ + +# print codes litter_code <- cats_r$charge_1_code[which( cats_r$relevant_charge %in% c('debris', 'littering','spills'))] paste0(unlist(strsplit(litter_code, " , ")), collapse = "' , '") @@ -45,82 +48,21 @@ litter_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999 littering <- vroom(litter_url, col_select = c(1:15,23:24,34:42)) littering$category <- rep('Littering', nrow(littering)) -# 3: rats -- search the term ----------- -# rats_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27AH50%27)") - -# rat query returns more results than search for the sanitation charge -rats_url2 <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=rats") - -rodent_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=rodent") - -rats2 <- vroom(rats_url2, col_select = c(1:15,23:24,34:42)) -rats2$violation_location_house <- as.character(rats2$violation_location_house) -rats2$category <- rep('Rats', nrow(rats2)) - -rodent <- vroom(rodent_url, col_select = c(1:15,23:24,34:42)) # this gets indoor rat conditions as well - -# remove indoor rat -patterns <- c('food','refrigerator', 'kitchen', 'grade pending', - 'sink','housekeeping','freezer','basement', - 'toilet','drain','test kit','customer', - 'in the establishment','employees','door', - 'floor','HOLES AND GAPS','sanitizing solution', - 'mice', 'restroom') - -rm_codes <- c("08A",'06C','06F','08B','10B','10G','16-0','18-0', - '20-0','28-0','AH3Q','AH4N','AH4P','B102','B106', - 'B104','B202','B206','B254','B302','19-0','10F','10H','18D') - -rodent_clean <- rodent %>% - filter(grepl(paste(patterns, collapse="* |"), - charge_1_code_description, - ignore.case = T)==F) %>% - filter(!charge_1_code %in% rm_codes) %>% - mutate(category = rep('Rats', nrow(.))) - - - -# 4: storage receptacles & improper signage --------- -storage_codes <- cats_r$charge_1_code[which( - cats_r$relevant_charge %in% c('storage receptacles', 'improper signage'))] -paste0(unlist(strsplit(storage_codes, " , ")), collapse = "' , '") -storage_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27AD06%27%20,%20%27AR03%27%20,%20%27AR14%27%20,%20%27AR25%27%20,%20%27AR36%27%20,%20%27AR44%27%20,%20%27AR7E%27%20,%20%27ARE7%27%20,%20%27ARF1%27%20,%20%27ARF4%27%20,%20%27ARF7%27%20,%20%27ARG1%27%20,%20%27ARG4%27%20,%20%27ARH4%27%20,%20%27ARH7%27%20,%20%27ARI1%27%20,%20%27ARI4%27%20,%20%27ASC1%27%20,%20%27ASGP%27%20,%20%27ASU1%27%20,%20%27ASU2%27%20,%20%27ASU3%27%20,%20%27ASV4%27%20,%20%27ASV5%27%20,%20%27ASV6%27%20,%20%27ASW4%27%20,%20%27ASW5%27%20,%20%27ASW6%27%20,%20%27AS18%27%20,%20%27ASP1%27%20,%20%27ASP7%27%20,%20%27ASZ4%27%20,%20%27ASZ7%27%20,%20%27ADC9%27%20,%20%27AR04%27%20,%20%27AR05%27%20,%20%27AR07%27%20,%20%27AR15%27%20,%20%27AR18%27%20,%20%27AR1F%27%20,%20%27AR1G%27%20,%20%27AR1J%27%20,%20%27AR26%27%20,%20%27AR4F%27%20,%20%27AS8C%27%20,%20%27AS8D%27%20,%20%27ASA9%27%20,%20%27ASAC%27%20,%20%27ASAF%27%20,%20%27ASAI%27%20,%20%27ASAL%27%20,%20%27ASAO%27%20,%20%27ASAR%27%20,%20%27ASAU%27%20,%20%27ASAX%27%20,%20%27ASC3%27%20,%20%27ASC4%27%20,%20%27ASC7%27%20,%20%27ASP2%27%20,%20%27ASP3%27%20,%20%27ASZ6%27%20,%20%27ASZ9%27)") -storage <- vroom(storage_url, col_select = c(1:15,23:24,34:42)) -storage$category <- rep('Storage & Signage', nrow(storage)) +# 3: abandoned vehicle ---------------- -# 5: IMPROPER DISPOSAL --------------- -improper_codes <- cats_r$charge_1_code[which( - cats_r$relevant_charge %in% c('IMPROPER DISPOSAL'))] -paste0(unlist(strsplit(improper_codes, " , ")), collapse = "' , '") - -improper_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27ASP4%27%20,%20%27AB01%27%20,%20%27AH30%27%20,%20%27AH3G%27%20,%20%27AR01%27%20,%20%27AR02%27%20,%20%27AR06%27%20,%20%27AR08%27%20,%20%27AR10%27%20,%20%27AR11%27%20,%20%27AR12%27%20,%20%27AR17%27%20,%20%27AR19%27%20,%20%27AR1A%27%20,%20%27AR1E%27%20,%20%27AR1H%27%20,%20%27AR21%27%20,%20%27AR22%27%20,%20%27AR2E%27%20,%20%27AR32%27%20,%20%27AR33%27%20,%20%27AR41%27%20,%20%27AR46%27%20,%20%27AR48%27%20,%20%27AR4E%27%20,%20%27AR4G%27%20,%20%27AR4H%27%20,%20%27AR51%27%20,%20%27AR6B%27%20,%20%27AR6H%27%20,%20%27AR76%27%20,%20%27AR79%27%20,%20%27AR7C%27%20,%20%27AR7F%27%20,%20%27AR7H%27%20,%20%27AR9H%27%20,%20%27ARA1%27%20,%20%27ARA7%27%20,%20%27ARB1%27%20,%20%27ARB4%27%20,%20%27ARC1%27%20,%20%27ARC4%27%20,%20%27ARC7%27%20,%20%27ARD1%27%20,%20%27ARD7%27%20,%20%27ARG7%27%20,%20%27ARH1%27%20,%20%27AS01%27%20,%20%27AS17%27%20,%20%27AS27%27%20,%20%27AS2A%27%20,%20%27AS2P%27%20,%20%27AS43%27%20,%20%27AS6B%27%20,%20%27ASCF%27%20,%20%27ASF4%27%20,%20%27ASF5%27%20,%20%27ASGD%27%20,%20%27ASGJ%27%20,%20%27ASP5%27%20,%20%27ASP6%27%20,%20%27ASP8%27%20,%20%27ASP9%27%20,%20%27ASU7%27%20,%20%27ASV1%27%20,%20%27ASY0%27%20,%20%27ASY4%27%20,%20%27ASY7%27%20,%20%27ASZ1%27)") - -improper <- vroom(improper_url, col_select = c(1:15,23:24,34:42)) -improper$category <- rep('Improper Disposal', nrow(improper)) - -# 6: FAILURE TO RECYCLE ------------- -fail_recy_code <- cats_r$charge_1_code[which( - cats_r$relevant_charge %in% c('FAILURE TO RECYCLE'))] -paste0(unlist(strsplit(fail_recy_code, " , ")), collapse = "' , '") - -fail_recy_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27AR7G%27%20,%20%27ASR7%27%20,%20%27ASU4%27%20,%20%27ASX1%27%20,%20%27ASX4%27%20,%20%27ASX7%27%20,%20%27AR09%27%20,%20%27AR20%27%20,%20%27AR31%27%20,%20%27AR8G%27%20,%20%27ASR4%27%20,%20%27ASR8%27%20,%20%27ASR9%27%20,%20%27ASS1%27%20,%20%27ASS2%27%20,%20%27ASS3%27%20,%20%27ASS4%27%20,%20%27ASS5%27%20,%20%27ASS6%27)") - -failed_to_rec <- vroom(fail_recy_url, col_select = c(1:15,23:24,34:42)) -failed_to_rec$category <- rep('Failure to Recycle', nrow(failed_to_rec)) - -# 7: abandoned vehicle -- search the term --------------- aband_vech_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272022-08-01T00:00:00%27%20AND%20charge_1_code%20in(%27AV01%27,%27AS24%27)") -#using abandoning & disabled vehicle - -search_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=vehicle") +#using abandoning & disabled vehicle codes +#disabled vehicle code found by using the query api function commented out below +# search_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=vehicle") abandoned_vec <- vroom(aband_vech_url, col_select = c(1:15,23:24,34:42)) abandoned_vec$category <- rep('abandoning vehicle', nrow(abandoned_vec)) -# 8: dirty sidewalk -------------- +# 4: dirty sidewalk -------------- +# print codes dirty_sidewalk_code <- cats_r$charge_1_code[which( cats_r$relevant_charge %in% c('dirty sidewalk'))] paste0(unlist(strsplit(dirty_sidewalk_code, " , ")), collapse = "' , '") @@ -134,9 +76,6 @@ dirty_sidewalk$category <- rep('dirty sidewalk', nrow(dirty_sidewalk)) # combine all violations --------- -# t <- sort(table(all_vios$category), decreasing = T) -# prop.table(t)*100 - all_vios <- rbind(dirty_sidewalk, illegal_dumping, abandoned_vec, littering) %>% select(!c(violation_location_floor, violation_description)) %>% # drop uneeded columns mutate(block = str_pad(violation_location_block_no, 5, pad = "0"), @@ -153,18 +92,83 @@ all_vios <- rbind(dirty_sidewalk, illegal_dumping, abandoned_vec, littering) %>% year = year(violation_date), # year month month = floor_date(as_date(violation_date), "month")) +# quick eda check table(all_vios$year) # ~5% missing missing_bbl <- all_vios %>% filter(bbl %in% bbl[nchar(bbl)<10]) skim(missing_bbl) -#drop missing bbls for now +# drop missing bbls for now -master_vios <- vroom("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$select=violation_date,date_extract_y(violation_date)", delim = ",") -master_vios_clean <-master_vios %>% - filter(date_extract_y_violation_date<=2023) %>% - mutate(month = floor_date(as_date(violation_date), "month")) +#############################################################3 +# CATEGORIES NO LONGER USED - KEEPING FOR FUTURE REFERENCE ####### +# side: improper use of dsny litter basket ------ -table(master_vios_clean$date_extract_y_violation_date) \ No newline at end of file +# basket_url <- c('https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=litter%20basket') +# +# litter_basket <- vroom(basket_url, col_select = c(1:15,23:24,34:42)) + + +# 3: rats -- search the term ----------- + +# rats_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27AH50%27)") + +# # rat query returns more results than search for the sanitation charge +# rats_url2 <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=rats") +# +# rodent_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=rodent") +# +# rats2 <- vroom(rats_url2, col_select = c(1:15,23:24,34:42)) +# rats2$violation_location_house <- as.character(rats2$violation_location_house) +# rats2$category <- rep('Rats', nrow(rats2)) +# +# rodent <- vroom(rodent_url, col_select = c(1:15,23:24,34:42)) # this gets indoor rat conditions as well +# +# # remove indoor rat +# patterns <- c('food','refrigerator', 'kitchen', 'grade pending', +# 'sink','housekeeping','freezer','basement', +# 'toilet','drain','test kit','customer', +# 'in the establishment','employees','door', +# 'floor','HOLES AND GAPS','sanitizing solution', +# 'mice', 'restroom') +# +# rm_codes <- c("08A",'06C','06F','08B','10B','10G','16-0','18-0', +# '20-0','28-0','AH3Q','AH4N','AH4P','B102','B106', +# 'B104','B202','B206','B254','B302','19-0','10F','10H','18D') +# +# rodent_clean <- rodent %>% +# filter(grepl(paste(patterns, collapse="* |"), +# charge_1_code_description, +# ignore.case = T)==F) %>% +# filter(!charge_1_code %in% rm_codes) %>% +# mutate(category = rep('Rats', nrow(.))) +# 4: storage receptacles & improper signage --------- +# storage_codes <- cats_r$charge_1_code[which( +# cats_r$relevant_charge %in% c('storage receptacles', 'improper signage'))] +# paste0(unlist(strsplit(storage_codes, " , ")), collapse = "' , '") +# +# storage_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27AD06%27%20,%20%27AR03%27%20,%20%27AR14%27%20,%20%27AR25%27%20,%20%27AR36%27%20,%20%27AR44%27%20,%20%27AR7E%27%20,%20%27ARE7%27%20,%20%27ARF1%27%20,%20%27ARF4%27%20,%20%27ARF7%27%20,%20%27ARG1%27%20,%20%27ARG4%27%20,%20%27ARH4%27%20,%20%27ARH7%27%20,%20%27ARI1%27%20,%20%27ARI4%27%20,%20%27ASC1%27%20,%20%27ASGP%27%20,%20%27ASU1%27%20,%20%27ASU2%27%20,%20%27ASU3%27%20,%20%27ASV4%27%20,%20%27ASV5%27%20,%20%27ASV6%27%20,%20%27ASW4%27%20,%20%27ASW5%27%20,%20%27ASW6%27%20,%20%27AS18%27%20,%20%27ASP1%27%20,%20%27ASP7%27%20,%20%27ASZ4%27%20,%20%27ASZ7%27%20,%20%27ADC9%27%20,%20%27AR04%27%20,%20%27AR05%27%20,%20%27AR07%27%20,%20%27AR15%27%20,%20%27AR18%27%20,%20%27AR1F%27%20,%20%27AR1G%27%20,%20%27AR1J%27%20,%20%27AR26%27%20,%20%27AR4F%27%20,%20%27AS8C%27%20,%20%27AS8D%27%20,%20%27ASA9%27%20,%20%27ASAC%27%20,%20%27ASAF%27%20,%20%27ASAI%27%20,%20%27ASAL%27%20,%20%27ASAO%27%20,%20%27ASAR%27%20,%20%27ASAU%27%20,%20%27ASAX%27%20,%20%27ASC3%27%20,%20%27ASC4%27%20,%20%27ASC7%27%20,%20%27ASP2%27%20,%20%27ASP3%27%20,%20%27ASZ6%27%20,%20%27ASZ9%27)") +# +# storage <- vroom(storage_url, col_select = c(1:15,23:24,34:42)) +# storage$category <- rep('Storage & Signage', nrow(storage)) +# 5: IMPROPER DISPOSAL --------------- +# improper_codes <- cats_r$charge_1_code[which( +# cats_r$relevant_charge %in% c('IMPROPER DISPOSAL'))] +# paste0(unlist(strsplit(improper_codes, " , ")), collapse = "' , '") +# +# improper_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27ASP4%27%20,%20%27AB01%27%20,%20%27AH30%27%20,%20%27AH3G%27%20,%20%27AR01%27%20,%20%27AR02%27%20,%20%27AR06%27%20,%20%27AR08%27%20,%20%27AR10%27%20,%20%27AR11%27%20,%20%27AR12%27%20,%20%27AR17%27%20,%20%27AR19%27%20,%20%27AR1A%27%20,%20%27AR1E%27%20,%20%27AR1H%27%20,%20%27AR21%27%20,%20%27AR22%27%20,%20%27AR2E%27%20,%20%27AR32%27%20,%20%27AR33%27%20,%20%27AR41%27%20,%20%27AR46%27%20,%20%27AR48%27%20,%20%27AR4E%27%20,%20%27AR4G%27%20,%20%27AR4H%27%20,%20%27AR51%27%20,%20%27AR6B%27%20,%20%27AR6H%27%20,%20%27AR76%27%20,%20%27AR79%27%20,%20%27AR7C%27%20,%20%27AR7F%27%20,%20%27AR7H%27%20,%20%27AR9H%27%20,%20%27ARA1%27%20,%20%27ARA7%27%20,%20%27ARB1%27%20,%20%27ARB4%27%20,%20%27ARC1%27%20,%20%27ARC4%27%20,%20%27ARC7%27%20,%20%27ARD1%27%20,%20%27ARD7%27%20,%20%27ARG7%27%20,%20%27ARH1%27%20,%20%27AS01%27%20,%20%27AS17%27%20,%20%27AS27%27%20,%20%27AS2A%27%20,%20%27AS2P%27%20,%20%27AS43%27%20,%20%27AS6B%27%20,%20%27ASCF%27%20,%20%27ASF4%27%20,%20%27ASF5%27%20,%20%27ASGD%27%20,%20%27ASGJ%27%20,%20%27ASP5%27%20,%20%27ASP6%27%20,%20%27ASP8%27%20,%20%27ASP9%27%20,%20%27ASU7%27%20,%20%27ASV1%27%20,%20%27ASY0%27%20,%20%27ASY4%27%20,%20%27ASY7%27%20,%20%27ASZ1%27)") +# +# improper <- vroom(improper_url, col_select = c(1:15,23:24,34:42)) +# improper$category <- rep('Improper Disposal', nrow(improper)) + +# 6: FAILURE TO RECYCLE ------------- +# fail_recy_code <- cats_r$charge_1_code[which( +# cats_r$relevant_charge %in% c('FAILURE TO RECYCLE'))] +# paste0(unlist(strsplit(fail_recy_code, " , ")), collapse = "' , '") +# +# fail_recy_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27%20AND%20charge_1_code%20in(%27AR7G%27%20,%20%27ASR7%27%20,%20%27ASU4%27%20,%20%27ASX1%27%20,%20%27ASX4%27%20,%20%27ASX7%27%20,%20%27AR09%27%20,%20%27AR20%27%20,%20%27AR31%27%20,%20%27AR8G%27%20,%20%27ASR4%27%20,%20%27ASR8%27%20,%20%27ASR9%27%20,%20%27ASS1%27%20,%20%27ASS2%27%20,%20%27ASS3%27%20,%20%27ASS4%27%20,%20%27ASS5%27%20,%20%27ASS6%27)") +# +# failed_to_rec <- vroom(fail_recy_url, col_select = c(1:15,23:24,34:42)) +# failed_to_rec$category <- rep('Failure to Recycle', nrow(failed_to_rec)) \ No newline at end of file diff --git a/code/dirty_sidewalk_oath/04_oath_summaries.R b/code/dirty_sidewalk_oath/04_oath_summaries.R index 6248c04..e483748 100644 --- a/code/dirty_sidewalk_oath/04_oath_summaries.R +++ b/code/dirty_sidewalk_oath/04_oath_summaries.R @@ -1,7 +1,13 @@ -pluto <- vroom("https://data.cityofnewyork.us/resource/64uk-42ks.csv?$limit=999999999&$select=bbl,latitude,longitude,bctcb2020") +source('code/03_oath_cats_api_pull.R') + +#### Pull in extra datasets PLUTO, PAD & LION ############# -## add population to bbl? +pluto <- vroom("https://data.cityofnewyork.us/resource/64uk-42ks.csv?$limit=999999999&$select=bbl,latitude,longitude,bctcb2020") +# add population to bbl? for normalizing? +# https://data.cityofnewyork.us/download/bc8t-ecyu/application%2Fx-zip-compressed +# file is too large to add to github! +# download & unzip the pad .txt file! pad <- read_csv('data/input/bobaadr.txt', col_select = c(boro,block,lot,stname,addrtype,segid)) %>% distinct() %>% @@ -9,20 +15,35 @@ pad <- read_csv('data/input/bobaadr.txt', pad$bbl <- as.numeric(paste0(pad$boro,pad$block,pad$lot)) +# Streets shp unzipped from 'https://data.cityofnewyork.us/download/2v4z-66xt/application%2Fx-zip-compressed' +lion <- read_sf("data/input/lion/lion.gdb", "lion") %>% + st_as_sf() %>% + #st_cast("MULTILINESTRING") %>% + st_transform("+proj=longlat +datum=WGS84") + +# check & clean subset +lion_bit <- lion[, c(1,3, 25:26, 79:82, 98:105,116:117,128)] +rm(lion) + +lion_bit_clean <- lion_bit %>% + mutate(id= paste0(Street,SegmentID, SegCount,XFrom, YFrom, SHAPE)) %>% + filter(!duplicated(id)) # some issue with distinct + +# lion_bit_bx <-lion_bit_clean %>% filter(Street =="CLAY AVENUE" ) +# a check for multicurve issue -# JOIN TO PLUTO -all_vios_bbl <- all_vios %>% +# JOIN TO PLUTO --------------- +all_vios_bbl <- all_vios %>% # all_vios comes from 03_oath_file filter(!bbl %in% bbl[nchar(bbl)<10]) %>% # remove vios with missing bbls mutate(bbl = as.numeric(bbl) ) %>% left_join(pluto, by = c('bbl')) %>% filter(is.na(latitude)==F) #remove non-matching bbls/ na latitudes for mapping -##### add littering !!!!!!!!!!!!! --------- -# year to date total filtered to dirty sidewalk only +# year to date complete month total filtered to dirty sidewalk & littering only pad_vios <- all_vios_bbl %>% filter(month >= '2022-08-01' & month < '2023-09-01') %>% mutate(category= case_when(category=='Littering' ~ 'dirty sidewalk', - TRUE ~ category)) %>% + TRUE ~ category)) %>% #group littering with dirty sidewalk filter(category=="dirty sidewalk") %>% group_by(bbl) %>% count(name='total') %>% # ungroup() %>% @@ -30,31 +51,19 @@ pad_vios <- all_vios_bbl %>% # bind_rows(summarise(category = "All_Violations", # pad_vios, total = n())) %>% right_join(pad %>% select(bbl, segid, stname, addrtype, boro), by = c('bbl'), - relationship ='many-to-many') %>% # JOIN TO PAD + relationship ='many-to-many') %>% +# JOIN TO PAD group_by(segid) %>% reframe(total = sum(total, na.rm = T), boro = boro) %>% distinct(segid, .keep_all = T) -# unzipped from 'https://data.cityofnewyork.us/download/2v4z-66xt/application%2Fx-zip-compressed' -lion <- read_sf("lion/lion.gdb", "lion") %>% st_as_sf() %>% - #st_cast("MULTILINESTRING") %>% - st_transform("+proj=longlat +datum=WGS84") - -# check & clean subset -lion_bit <- lion[, c(1,3, 25:26, 79:82, 98:105,116:117,128)] - -lion_bit_clean <- lion_bit %>% - mutate(id= paste0(Street,SegmentID, SegCount,XFrom, YFrom, SHAPE)) %>% - filter(!duplicated(id)) # some issue with distinct - -# lion_bit_bx <-lion_bit_clean %>% filter(Street =="CLAY AVENUE" ) - -# join violations to street segments, remove streets with no violations +# JOINT TO LION (street segments). Remove streets with no violations lion_vios1 <- lion_bit_clean %>% left_join(pad_vios, by= c('SegmentID'='segid'), keep = T) %>% - filter(!is.na(segid) & total!=0) %>% st_drop_geometry() %>% - group_by(Street, total) %>% # there are bbls with mutiple street segments but the same number of violations, merging those together + filter(!is.na(segid) & total!=0) %>% + st_drop_geometry() %>% + group_by(Street, total) %>% # there are bbls with multiple street segments but the same number of violations, merging those together summarise(total = mean(total), SHAPE_Length = sum(SHAPE_Length), LLo_Hyphen = min(unique(LLo_Hyphen)), @@ -64,9 +73,7 @@ lion_vios1 <- lion_bit_clean %>% left_join(segs_4_pluto, by= c('SegmentID'='segid')) %>% mutate(vios_per_length = total/SHAPE_Length, vios_per_bbl = total/n, - #LLo_Hyphen = trimws(LLo_Hyphen, 'both'), - #LHi_Hyphen = trimws(LHi_Hyphen, 'both'), - clean_hyphen = case_when(LLo_Hyphen==LHi_Hyphen ~ LLo_Hyphen, + clean_hyphen = case_when(LLo_Hyphen == LHi_Hyphen ~ LLo_Hyphen, TRUE ~ paste(LLo_Hyphen, LHi_Hyphen, sep = " - ")), clean_hyphen = case_when(clean_hyphen=="NA - NA" ~ "", TRUE ~ clean_hyphen), @@ -80,12 +87,7 @@ segs_4_pluto <- lion_bit_clean %>% left_join(pad %>% select(bbl, segid), by = c('segid')) %>% group_by(segid) %>% count() -# for carto? -all_vios.shp <- all_vios_bbl %>% - st_as_sf(coords = c("longitude", "latitude")) %>% - st_set_crs(4326) %>% - - +# quick map check mapview(all_vios.shp %>% filter(year==2022 & category=="dirty sidewalk"), zcol = "category", col.regions = pal_nycc(), legend = TRUE, From cd38d4be96a6bfc1a9b14ee2d76ddd58ecd17b89 Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 11:20:09 -0400 Subject: [PATCH 08/12] files cleaned! --- code/dirty_sidewalk_oath/04_oath_summaries.R | 32 +- code/dirty_sidewalk_oath/05_oath_visuals.R | 453 ++++++++---------- ...{04_carto_queries.R => 01_carto_queries.R} | 5 +- 3 files changed, 223 insertions(+), 267 deletions(-) rename code/for_carto_map/{04_carto_queries.R => 01_carto_queries.R} (96%) diff --git a/code/dirty_sidewalk_oath/04_oath_summaries.R b/code/dirty_sidewalk_oath/04_oath_summaries.R index e483748..116a3ac 100644 --- a/code/dirty_sidewalk_oath/04_oath_summaries.R +++ b/code/dirty_sidewalk_oath/04_oath_summaries.R @@ -58,8 +58,16 @@ pad_vios <- all_vios_bbl %>% boro = boro) %>% distinct(segid, .keep_all = T) +# get total bbl counts for each segment id for normalizing +segs_4_pluto <- lion_bit_clean %>% + left_join(pad_vios, by= c('SegmentID'='segid'), keep = T) %>% + filter(!is.na(segid) & total!=0) %>% st_drop_geometry() %>% + distinct(segid) %>% select(segid) %>% + left_join(pad %>% select(bbl, segid), by = c('segid')) %>% + group_by(segid) %>% count() + # JOINT TO LION (street segments). Remove streets with no violations -lion_vios1 <- lion_bit_clean %>% +lion_vios <- lion_bit_clean %>% left_join(pad_vios, by= c('SegmentID'='segid'), keep = T) %>% filter(!is.na(segid) & total!=0) %>% st_drop_geometry() %>% @@ -79,21 +87,13 @@ lion_vios1 <- lion_bit_clean %>% TRUE ~ clean_hyphen), full_address = paste(clean_hyphen, Street)) -# get total bbl counts for each segment id for normalizing -segs_4_pluto <- lion_bit_clean %>% - left_join(pad_vios, by= c('SegmentID'='segid'), keep = T) %>% - filter(!is.na(segid) & total!=0) %>% st_drop_geometry() %>% - distinct(segid) %>% select(segid) %>% - left_join(pad %>% select(bbl, segid), by = c('segid')) %>% - group_by(segid) %>% count() # quick map check -mapview(all_vios.shp %>% - filter(year==2022 & category=="dirty sidewalk"), - zcol = "category", col.regions = pal_nycc(), legend = TRUE, - alpha.regions = 0.01, cex=2, lwd=0.01) - - -lion$types <- as.data.frame(st_geometry_type(lion)) +# mapview(all_vios.shp %>% +# filter(year==2022 & category=="dirty sidewalk"), +# zcol = "category", col.regions = pal_nycc(), legend = TRUE, +# alpha.regions = 0.01, cex=2, lwd=0.01) -lion_curve <- lion %>% filter(types=="MULTICURVE") +# muticurve troubleshooting +# lion$types <- as.data.frame(st_geometry_type(lion)) +# lion_curve <- lion %>% filter(types=="MULTICURVE") diff --git a/code/dirty_sidewalk_oath/05_oath_visuals.R b/code/dirty_sidewalk_oath/05_oath_visuals.R index 33d40e9..4d7a29d 100644 --- a/code/dirty_sidewalk_oath/05_oath_visuals.R +++ b/code/dirty_sidewalk_oath/05_oath_visuals.R @@ -1,56 +1,8 @@ -# top issuing agencies ------- -top_agencies <- all_vios %>% - group_by(year, issuing_agency) %>% - count() %>% arrange(desc(n)) %>% - group_by(year) %>% - slice_max(n, n=10) %>% - pivot_wider(names_from = year, values_from=n) +source('code/04_oath_summaries.R') -# Total Related Sanitation Violations Vs All Oath Violations Over Time ----- -t <- - #table(all_vios$year) %>% - table(all_vios$month) %>% - data.frame() %>% - #setNames(nm = c('year','violations')) %>% - setNames(nm = c('month','violations')) %>% - mutate(type = rep('related_sanitation', nrow(.))) -t1<- - #table(master_vios_clean$date_extract_y_violation_date) %>% - table(master_vios_clean$month) %>% - data.frame() %>% - #setNames(nm = c('year','violations')) %>% - setNames(nm = c('month','violations')) %>% - mutate(type = rep('all_oath', nrow(.))) - -to_all_vios_yr <- rbind(t,t1) -to_all_vios_mon <- rbind(t,t1) - -ggplot(to_all_vios_yr, aes(x=year, y=violations, group = type, color=type)) + - geom_point() + - geom_smooth(se=F) + - #geom_line() + - scale_color_nycc() + - theme_nycc() + - ggtitle("Related Sanitation to All Oath Violations Trend") - -ggplot(to_all_vios_mon, aes(x=ymd(month), y=violations, - group = type, color=type)) + - geom_point() + - geom_smooth(se=F, span=0.25) + - #geom_line() + - scale_x_date(date_labels = "%m-%Y", breaks = "6 months") + - #scale_color_nycc() + - theme_nycc() + - ggtitle("Related Sanitation Vs All Oath Violations", "Monthly Trend") - - -# monthly trend all categories ----- - - -## YTD total all categories bar chart ------ -# plot -cat_monthly_trend <- all_vios %>% +# 1: YTD total all categories bar chart ------ +cat_monthly_trend <- all_vios %>% # all_vios comes from 03_oath_file mutate(category= case_when(category=='Littering' ~ 'dirty sidewalk', TRUE ~ category)) %>% filter(month >= '2022-08-01' & month < '2023-09-01') %>% @@ -64,125 +16,13 @@ bar_cat_vios <- cat_monthly_trend %>% summarize(total=sum(total)) %>% mutate(category = toupper(category)) +# save output for street cleanliness 311 vs OATH categories chart write_csv(bar_cat_vios, "data/output/oath_ytd_categories.csv") -plot <- - bar_cat_vios %>% - ggplot(aes(x = reorder(category,total), - y=total, fill = category)) + - geom_col_interactive(width = 0.6, - tooltip = - paste(bar_cat_vios$category, - "
Violations:", - round(bar_cat_vios$total))) + - - coord_flip() + - geom_text(show.legend = F, size = 3, - label= paste0(round(bar_cat_vios$total, 0), " violations"), - nudge_x = 0, hjust=-0.15) + - scale_y_continuous(expand = expansion(mult = c(0, .1))) + - ylab("Violations") + xlab("") + - labs(title="Citywide Total Sanitation OATH Violations", - subtitle = "(Year-to-Date)", - x="", y="Violations") + - theme_nycc()+ - theme(axis.text.x = element_text(angle = 0, hjust = 1, size = 11), - legend.position = "none", - axis.text.y = element_text(size = 11)) - -tooltip_css <- "background-color:#CACACA;" - -plot_interactive <- girafe(ggobj = plot, - width_svg = 6, - height_svg = 5, - options = list( - opts_tooltip(css = tooltip_css) - ) -) - - -htmltools::save_html(plot_interactive, "visuals/vios_ytd_total_citywide_bar.html") - -## dirty sidewalk alone ------- - -ds <- cat_monthly_trend %>% filter(category=="dirty sidewalk") -plot <- ggplot(ds, aes(x=month, y=total)) + - geom_point_interactive(color= pal_nycc("cool")[7], - tooltip = paste0(ds$month, ": ", ds$total)) + - geom_smooth(se=F, span=0.25, color = pal_nycc("cool")[7]) + - #geom_line() + - scale_x_date(date_labels = "%b-%Y", breaks = "6 months") + - theme_nycc() + - #scale_color_nycc() + - ggtitle("Oath Violations: Dirty Side Walk", "Monthly Trend") - -tooltip_css <- "background-color:#CACACA;" -plot_interactive <- girafe(ggobj = plot, # formatting for all - width_svg = 10, height_svg = 6, - options = list( - opts_tooltip( - opacity = 0.8, #opacity of the background box - css = "background-color:#4c6061; color:white; padding:10px; border-radius:5px;"), - opts_hover_inv(css = "stroke-width: 1;opacity:0.6;"), - opts_hover(css = "stroke-width: 4; opacity: 1;") - )) - -htmltools::save_html(plot_interactive, "visuals/oath_dirty_sidewalk.html") - -## illegal dumping alone---- -df <- cat_monthly_trend %>% filter(category=="Illegal Dumping") -plot <- ggplot(df, aes(x=month, y=total)) + - geom_point_interactive(color= pal_nycc("cool")[7], - tooltip = paste0(df$month, ": ", df$total)) + - geom_smooth(se=F, span=0.25, color = pal_nycc("cool")[7]) + - #geom_line() + - scale_x_date(date_labels = "%b-%Y", breaks = "6 months") + - theme_nycc() + - #scale_color_nycc() + - ggtitle("Oath Violations: Illegal Dumping", "Monthly Trend") - -tooltip_css <- "background-color:#CACACA;" -plot_interactive <- girafe(ggobj = plot, # formatting for all - width_svg = 10, height_svg = 6, - options = list( - opts_tooltip( - opacity = 0.8, #opacity of the background box - css = "background-color:#4c6061; color:white; padding:10px; border-radius:5px;"), - opts_hover_inv(css = "stroke-width: 1;opacity:0.6;"), - opts_hover(css = "stroke-width: 4; opacity: 1;") - )) - -save_html(plot_interactive, "visuals/oath_illegal_dumping.html") - -## derelict vehicle alone ---- -df <- cat_monthly_trend %>% filter(category=="abandoning vehicle") -plot <- ggplot(df, aes(x=month, y=total)) + - geom_point_interactive(color= pal_nycc("cool")[7], - tooltip = paste0(df$month, ": ", df$total)) + - geom_smooth(se=F, span=0.25, color = pal_nycc("cool")[7]) + - #geom_line() + - scale_x_date(date_labels = "%b-%Y", breaks = "6 months") + - theme_nycc() + - #scale_color_nycc() + - ggtitle("Oath Violations: Abandoning Vehicle", "Monthly Trend") - - -tooltip_css <- "background-color:#CACACA;" -plot_interactive <- girafe(ggobj = plot, # formatting for all - width_svg = 10, height_svg = 6, - options = list( - opts_tooltip( - opacity = 0.8, #opacity of the background box - css = "background-color:#4c6061; color:white; padding:10px; border-radius:5px;"), - opts_hover_inv(css = "stroke-width: 1;opacity:0.6;"), - opts_hover(css = "stroke-width: 4; opacity: 1;") - )) - -save_html(plot_interactive, "visuals/oath_abandoning_vehicle.html") -## dirtiest sidewalk table ----- -# normalized 1 -df <- lion_vios1 %>% +# 2: dirtiest sidewalk table ----- +# normalized by bbl, first considered normalizing by street length +df <- lion_vios %>% # lion_vios comes from 04_oath_file arrange(desc(vios_per_bbl)) %>% ungroup() %>% as.data.frame() %>% select(full_address, boro,vios_per_bbl, total, n) %>% mutate(vios_per_bbl = round(vios_per_bbl,1), @@ -207,7 +47,7 @@ plot <- df %>% plot %>% gtsave("visuals/dirtiest_streets_per_bbl.html") -# raw +# raw numbers table df1 <- lion_vios1 %>% arrange(desc(total)) %>% ungroup() %>% as.data.frame() %>% select(full_address, boro,vios_per_bbl, total, n) %>% @@ -234,84 +74,201 @@ plot1 <- df1 %>% plot1 %>% gtsave("visuals/dirtiest_streets.html") -## dirtiest sidewalk map --------- - -#plot(density(lion_vios$vios_per_length)) -#extremely skewed - -# making custom bins - -# fix multicurve issue -# reference: https://github.com/r-spatial/sf/issues/2203#issuecomment-1634794519 -fix_geom<-lion_vios[grepl("list\\(list",lion_vios$id)==T,] -fixed=c() -for(i in 1:dim(lion_curve)[1]){ - lion_curve$SHAPE[i]=st_cast(lion_curve$SHAPE[i], "MULTILINESTRING") -} - - -# bin cut offs based on quantiles -cut_996 <- quantile(lion_vios.shp$vios_per_length,.996) -# 0%-99.5% of streets : < 1 violation per 1ft of a street's length - -pal_street <- leaflet::colorBin( - palette = c('#EEB6B1','#C67466','#993123','#800000'), - bins = c(0,1,4,9,max(lion_vios$vios_per_length)), - domain = lion_vios$vios_per_length, - na.color = "#FFFFFF" -) - -# map - -lion_vios.shp <- lion_vios %>% - filter(grepl("list\\(list",id)==F) %>% #drop the multicurve rows - bind_rows(fix_geom) %>% #add the multicurve rows fixed to multistring - mutate(bin = case_when(vios_per_length< 1~ '#EEB6B1', - vios_per_length>=1 & - vios_per_length<4 ~ "#C67466", - vios_per_length>=4 & - vios_per_length<9 ~ '#993123', - vios_per_length>=9 ~ "#800000"), - size = case_when(bin =='#EEB6B1' ~ 0.5, - bin =='#C67466' ~ 2.5, - bin =='#993123' ~ 6, - bin =='#800000' ~ 6.5) ) - - - -map <- leaflet() %>% - # leaflet(options = leafletOptions(minZoom = 11, maxZoom = 13, - # zoomControl = FALSE, - # dragging = T)) %>% - # addCouncilStyle() %>% not working - #leaflet.extras::setMapWidgetStyle(list(background= "white")) %>% - addCouncilStyle(add_dists = TRUE, - highlight_dists = c(9:10,16,18,26,37,3), - highlight_color = "#800000") %>% - addPolylines(data= lion_vios.shp, - opacity = 0.6, - weight = ~lion_vios.shp$size, - color = ~pal_street(vios_per_length), - popup = paste("

",lion_vios.shp$full_address,"
", - "Violations Per Foot: ", - round(lion_vios.shp$vios_per_length,1), - "
", - "Street Length: ", - round(lion_vios.shp$SHAPE_Length), - "
", - "Total Violations: ", - round(lion_vios.shp$total))) %>% - # addLegend_decreasing(position = "topleft", pal = pal_street, - # title = paste0("Violations Per Foot"), - # values = c(0, 1), opacity = 1, decreasing = T, - # na.label = "NA") %>% - leaflegend::addLegendBin(data = lion_vios.shp, - position = "topleft", - pal= pal_street, - shape = "rect", - orientation = "horizontal", - values = lion_vios$vios_per_length, - title = paste("Violations Per Foot",'\n'), - numberFormat = function(x) {format(round(x), trim = TRUE, - scientific = FALSE)} ) -htmlwidgets::saveWidget(map, file="visuals/dirtiest_streets_map.html", selfcontained = T) +## Don't run, not used for webpage -------------- +## bar chart of all oath street cleanliness categories - shown during briefing +# plot <- +# bar_cat_vios %>% +# ggplot(aes(x = reorder(category,total), +# y=total, fill = category)) + +# geom_col_interactive(width = 0.6, +# tooltip = +# paste(bar_cat_vios$category, +# "
Violations:", +# round(bar_cat_vios$total))) + +# +# coord_flip() + +# geom_text(show.legend = F, size = 3, +# label= paste0(round(bar_cat_vios$total, 0), " violations"), +# nudge_x = 0, hjust=-0.15) + +# scale_y_continuous(expand = expansion(mult = c(0, .1))) + +# ylab("Violations") + xlab("") + +# labs(title="Citywide Total Sanitation OATH Violations", +# subtitle = "(Year-to-Date)", +# x="", y="Violations") + +# theme_nycc()+ +# theme(axis.text.x = element_text(angle = 0, hjust = 1, size = 11), +# legend.position = "none", +# axis.text.y = element_text(size = 11)) +# +# tooltip_css <- "background-color:#CACACA;" +# +# plot_interactive <- girafe(ggobj = plot, +# width_svg = 6, +# height_svg = 5, +# options = list( +# opts_tooltip(css = tooltip_css) +# ) +# ) +# +# +# htmltools::save_html(plot_interactive, "visuals/vios_ytd_total_citywide_bar.html") + +## dirty sidewalk alone --- + +# ds <- cat_monthly_trend %>% filter(category=="dirty sidewalk") +# plot <- ggplot(ds, aes(x=month, y=total)) + +# geom_point_interactive(color= pal_nycc("cool")[7], +# tooltip = paste0(ds$month, ": ", ds$total)) + +# geom_smooth(se=F, span=0.25, color = pal_nycc("cool")[7]) + +# #geom_line() + +# scale_x_date(date_labels = "%b-%Y", breaks = "6 months") + +# theme_nycc() + +# #scale_color_nycc() + +# ggtitle("Oath Violations: Dirty Side Walk", "Monthly Trend") +# +# tooltip_css <- "background-color:#CACACA;" +# plot_interactive <- girafe(ggobj = plot, # formatting for all +# width_svg = 10, height_svg = 6, +# options = list( +# opts_tooltip( +# opacity = 0.8, #opacity of the background box +# css = "background-color:#4c6061; color:white; padding:10px; border-radius:5px;"), +# opts_hover_inv(css = "stroke-width: 1;opacity:0.6;"), +# opts_hover(css = "stroke-width: 4; opacity: 1;") +# )) +# +# htmltools::save_html(plot_interactive, "visuals/oath_dirty_sidewalk.html") + +## illegal dumping alone-- +# df <- cat_monthly_trend %>% filter(category=="Illegal Dumping") +# plot <- ggplot(df, aes(x=month, y=total)) + +# geom_point_interactive(color= pal_nycc("cool")[7], +# tooltip = paste0(df$month, ": ", df$total)) + +# geom_smooth(se=F, span=0.25, color = pal_nycc("cool")[7]) + +# #geom_line() + +# scale_x_date(date_labels = "%b-%Y", breaks = "6 months") + +# theme_nycc() + +# #scale_color_nycc() + +# ggtitle("Oath Violations: Illegal Dumping", "Monthly Trend") +# +# +# tooltip_css <- "background-color:#CACACA;" +# plot_interactive <- girafe(ggobj = plot, # formatting for all +# width_svg = 10, height_svg = 6, +# options = list( +# opts_tooltip( +# opacity = 0.8, #opacity of the background box +# css = "background-color:#4c6061; color:white; padding:10px; border-radius:5px;"), +# opts_hover_inv(css = "stroke-width: 1;opacity:0.6;"), +# opts_hover(css = "stroke-width: 4; opacity: 1;") +# )) +# +# save_html(plot_interactive, "visuals/oath_illegal_dumping.html") + +## derelict vehicle alone -- +# df <- cat_monthly_trend %>% filter(category=="abandoning vehicle") +# plot <- ggplot(df, aes(x=month, y=total)) + +# geom_point_interactive(color= pal_nycc("cool")[7], +# tooltip = paste0(df$month, ": ", df$total)) + +# geom_smooth(se=F, span=0.25, color = pal_nycc("cool")[7]) + +# #geom_line() + +# scale_x_date(date_labels = "%b-%Y", breaks = "6 months") + +# theme_nycc() + +# #scale_color_nycc() + +# ggtitle("Oath Violations: Abandoning Vehicle", "Monthly Trend") +# +# +# tooltip_css <- "background-color:#CACACA;" +# plot_interactive <- girafe(ggobj = plot, # formatting for all +# width_svg = 10, height_svg = 6, +# options = list( +# opts_tooltip( +# opacity = 0.8, #opacity of the background box +# css = "background-color:#4c6061; color:white; padding:10px; border-radius:5px;"), +# opts_hover_inv(css = "stroke-width: 1;opacity:0.6;"), +# opts_hover(css = "stroke-width: 4; opacity: 1;") +# )) +# +# save_html(plot_interactive, "visuals/oath_abandoning_vehicle.html") +## dirtiest sidewalk map -- + +# #plot(density(lion_vios$vios_per_length)) +# #extremely skewed - +# # making custom bins +# +# # fix multicurve issue +# # reference: https://github.com/r-spatial/sf/issues/2203#issuecomment-1634794519 +# fix_geom<-lion_vios[grepl("list\\(list",lion_vios$id)==T,] +# fixed=c() +# for(i in 1:dim(lion_curve)[1]){ +# lion_curve$SHAPE[i]=st_cast(lion_curve$SHAPE[i], "MULTILINESTRING") +# } +# +# +# # bin cut offs based on quantiles +# cut_996 <- quantile(lion_vios.shp$vios_per_length,.996) +# # 0%-99.5% of streets : < 1 violation per 1ft of a street's length +# +# pal_street <- leaflet::colorBin( +# palette = c('#EEB6B1','#C67466','#993123','#800000'), +# bins = c(0,1,4,9,max(lion_vios$vios_per_length)), +# domain = lion_vios$vios_per_length, +# na.color = "#FFFFFF" +# ) +# +# # map +# +# lion_vios.shp <- lion_vios %>% +# filter(grepl("list\\(list",id)==F) %>% #drop the multicurve rows +# bind_rows(fix_geom) %>% #add the multicurve rows fixed to multistring +# mutate(bin = case_when(vios_per_length< 1~ '#EEB6B1', +# vios_per_length>=1 & +# vios_per_length<4 ~ "#C67466", +# vios_per_length>=4 & +# vios_per_length<9 ~ '#993123', +# vios_per_length>=9 ~ "#800000"), +# size = case_when(bin =='#EEB6B1' ~ 0.5, +# bin =='#C67466' ~ 2.5, +# bin =='#993123' ~ 6, +# bin =='#800000' ~ 6.5) ) +# +# +# +# map <- leaflet() %>% +# # leaflet(options = leafletOptions(minZoom = 11, maxZoom = 13, +# # zoomControl = FALSE, +# # dragging = T)) %>% +# # addCouncilStyle() %>% not working +# #leaflet.extras::setMapWidgetStyle(list(background= "white")) %>% +# addCouncilStyle(add_dists = TRUE, +# highlight_dists = c(9:10,16,18,26,37,3), +# highlight_color = "#800000") %>% +# addPolylines(data= lion_vios.shp, +# opacity = 0.6, +# weight = ~lion_vios.shp$size, +# color = ~pal_street(vios_per_length), +# popup = paste("

",lion_vios.shp$full_address,"
", +# "Violations Per Foot: ", +# round(lion_vios.shp$vios_per_length,1), +# "
", +# "Street Length: ", +# round(lion_vios.shp$SHAPE_Length), +# "
", +# "Total Violations: ", +# round(lion_vios.shp$total))) %>% +# # addLegend_decreasing(position = "topleft", pal = pal_street, +# # title = paste0("Violations Per Foot"), +# # values = c(0, 1), opacity = 1, decreasing = T, +# # na.label = "NA") %>% +# leaflegend::addLegendBin(data = lion_vios.shp, +# position = "topleft", +# pal= pal_street, +# shape = "rect", +# orientation = "horizontal", +# values = lion_vios$vios_per_length, +# title = paste("Violations Per Foot",'\n'), +# numberFormat = function(x) {format(round(x), trim = TRUE, +# scientific = FALSE)} ) +# +# htmlwidgets::saveWidget(map, file="visuals/dirtiest_streets_map.html", selfcontained = T) \ No newline at end of file diff --git a/code/for_carto_map/04_carto_queries.R b/code/for_carto_map/01_carto_queries.R similarity index 96% rename from code/for_carto_map/04_carto_queries.R rename to code/for_carto_map/01_carto_queries.R index 2a61cfb..4abbd89 100644 --- a/code/for_carto_map/04_carto_queries.R +++ b/code/for_carto_map/01_carto_queries.R @@ -55,7 +55,6 @@ carto_311<- sanitation_311_carto %>% TRUE ~ complaint_type)) %>% filter(complaint_type != "Street Sweeping Complaint") -carto_aggregate - -write_csv(sanitation_311_carto, 'data/output/for_carto_311_sanitation.csv') +#write_csv(carto_311, 'data/output/for_carto_311_sanitation.csv') +#not pushed to github due to large size From 4d4b8467f4597401209188c1ae2ba25a6296248d Mon Sep 17 00:00:00 2001 From: rose Date: Fri, 15 Sep 2023 11:44:33 -0400 Subject: [PATCH 09/12] final code edits! --- code/dirty_sidewalk_oath/02_oath_eda_cleaning.R | 2 +- code/dirty_sidewalk_oath/03_oath_cats_api_pull.R | 14 +++++++++----- code/dirty_sidewalk_oath/04_oath_summaries.R | 2 +- code/dirty_sidewalk_oath/05_oath_visuals.R | 2 +- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R b/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R index ef0c88d..83a1d93 100644 --- a/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R +++ b/code/dirty_sidewalk_oath/02_oath_eda_cleaning.R @@ -6,7 +6,7 @@ source('code/00_load_dependencies.R') # quick summary/eda look at the dataset ------------- options(scipen = 999) -skimr::skim(raw_oath_cats) +skimr::skim(raw_oath_cats) #raw_oath_cats from 01_oath file t <- sort(table(raw_oath_cats$relevant_charge), decreasing = T) prop.table(t)*100 diff --git a/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R b/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R index 3b090e6..7f45183 100644 --- a/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R +++ b/code/dirty_sidewalk_oath/03_oath_cats_api_pull.R @@ -1,6 +1,8 @@ ############################################################ # Pull from API each category's codes to get all OATH violations, not just issued by Sanitation ##################################################### + +source('code/00_load_dependencies.R') cats <- read_csv("data/output/oath_codes/oath_charges_grouped.csv") # combine codes into groupings -------------- @@ -43,18 +45,19 @@ litter_code <- cats_r$charge_1_code[which( cats_r$relevant_charge %in% c('debris', 'littering','spills'))] paste0(unlist(strsplit(litter_code, " , ")), collapse = "' , '") +# encoded litter_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272022-08-01T00:00:00%27%20AND%20charge_1_code%20in(%27AS08%27%20,%20%27AS19%27%20,%20%27AS22%27%20,%20%27AS9C%27%20,%20%27AS9D%27%20,%20%27AS03%27%20,%20%27AS04%27%20,%20%27AS05%27%20,%20%27AS3C%27%20,%20%27AS09%27%20,%20%27AS9A%27%20,%20%27AS9B%27%20,%20%27AFK2%27%20,%20%27AFZ5%27%20,%20%27AH3I%27%20,%20%27AK09%27%20,%20%27AS3F%27%20,%20%27ASF3%27)") littering <- vroom(litter_url, col_select = c(1:15,23:24,34:42)) littering$category <- rep('Littering', nrow(littering)) - # 3: abandoned vehicle ---------------- aband_vech_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272022-08-01T00:00:00%27%20AND%20charge_1_code%20in(%27AV01%27,%27AS24%27)") -#using abandoning & disabled vehicle codes -#disabled vehicle code found by using the query api function commented out below +# using abandoning & disabled vehicle codes +# disabled vehicle code found by using the query api function commented out below + # search_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272018-01-01T00:00:00%27&$q=vehicle") abandoned_vec <- vroom(aband_vech_url, col_select = c(1:15,23:24,34:42)) @@ -67,6 +70,7 @@ dirty_sidewalk_code <- cats_r$charge_1_code[which( cats_r$relevant_charge %in% c('dirty sidewalk'))] paste0(unlist(strsplit(dirty_sidewalk_code, " , ")), collapse = "' , '") +# encoded dirty_sidewalk_url <- c("https://data.cityofnewyork.us/resource/jz4z-kudi.csv?$limit=999999999999&$where=violation_date%3E=%272022-08-01T00:00:00%27%20AND%20charge_1_code%20in(%27AS06%27%20,%20%27AS26%27%20,%20%27AS6M%27%20,%20%27AS6V%27%20,%20%27AS8V%27%20,%20%27AS97%27%20,%20%27AT12%27%20,%20%27AT13%27)") dirty_sidewalk <- vroom(dirty_sidewalk_url, col_select = c(1:15,23:24,34:42)) @@ -87,7 +91,7 @@ all_vios <- rbind(dirty_sidewalk, illegal_dumping, abandoned_vec, littering) %>% violation_location_borough == "MANHATTAN" ~ 1, violation_location_borough == "STATEN IS" ~ 5, TRUE ~ 0 - ), + ), # recode boros for bbl bbl = paste0(borough, block, lot), # create bbl column year = year(violation_date), # year month month = floor_date(as_date(violation_date), "month")) @@ -95,7 +99,7 @@ all_vios <- rbind(dirty_sidewalk, illegal_dumping, abandoned_vec, littering) %>% # quick eda check table(all_vios$year) -# ~5% missing +# ~1.6% missing bbl missing_bbl <- all_vios %>% filter(bbl %in% bbl[nchar(bbl)<10]) skim(missing_bbl) diff --git a/code/dirty_sidewalk_oath/04_oath_summaries.R b/code/dirty_sidewalk_oath/04_oath_summaries.R index 116a3ac..d1341d8 100644 --- a/code/dirty_sidewalk_oath/04_oath_summaries.R +++ b/code/dirty_sidewalk_oath/04_oath_summaries.R @@ -27,7 +27,7 @@ rm(lion) lion_bit_clean <- lion_bit %>% mutate(id= paste0(Street,SegmentID, SegCount,XFrom, YFrom, SHAPE)) %>% - filter(!duplicated(id)) # some issue with distinct + filter(!duplicated(id)) # some issue with distinct, remove dups # lion_bit_bx <-lion_bit_clean %>% filter(Street =="CLAY AVENUE" ) # a check for multicurve issue diff --git a/code/dirty_sidewalk_oath/05_oath_visuals.R b/code/dirty_sidewalk_oath/05_oath_visuals.R index 4d7a29d..67cb2aa 100644 --- a/code/dirty_sidewalk_oath/05_oath_visuals.R +++ b/code/dirty_sidewalk_oath/05_oath_visuals.R @@ -48,7 +48,7 @@ plot <- df %>% plot %>% gtsave("visuals/dirtiest_streets_per_bbl.html") # raw numbers table -df1 <- lion_vios1 %>% +df1 <- lion_vios %>% arrange(desc(total)) %>% ungroup() %>% as.data.frame() %>% select(full_address, boro,vios_per_bbl, total, n) %>% mutate(vios_per_bbl = round(vios_per_bbl,1), From 3e51c284ed7231cb4a1ff7131ba5917a6513bd36 Mon Sep 17 00:00:00 2001 From: Rose Martinez <44377052+romartinez-nycc@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:57:13 -0400 Subject: [PATCH 10/12] Update README.md --- README.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f061553..565b762 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Oversight of Street Cleanliness in NYC -Data analysis and visuals for NYCC 09.12.23 ['Oversight - DSNY’s Initiatives to Address Street Cleanliness.'](https://legistar.council.nyc.gov/MeetingDetail.aspx?ID=1115076&GUID=2C89CBEC-AC94-4A45-8EFB-18543811A283&Options=info|&Search=) hearing. +Data analysis and visuals for NYCC 09.12.23 ['Oversight - DSNY’s Initiatives to Address Street Cleanliness'](https://legistar.council.nyc.gov/MeetingDetail.aspx?ID=1115076&GUID=2C89CBEC-AC94-4A45-8EFB-18543811A283&Options=info|&Search=) hearing. -An associated webpage for this analysis can be found [on the council website](https://council.nyc.gov/data/clean-streets/): +An associated webpage for this analysis can be found on the [council website](https://council.nyc.gov/data/clean-streets/). *** @@ -11,21 +11,23 @@ An associated webpage for this analysis can be found [on the council website](ht - [Restaurants](https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/43nn-pn8j) - [OATH Violations](https://data.cityofnewyork.us/City-Government/OATH-Hearings-Division-Case-Status/jz4z-kudi) - [311 Complaints](https://data.cityofnewyork.us/Social-Services/311-Service-Requests-from-2010-to-Present/erm2-nwe9) +- [DSNY Litter Baskets](https://data.cityofnewyork.us/dataset/DSNY-Litter-Basket-Inventory/8znf-7b2c) -#### Methodology -Using data from OATH, 311, and data sources related to where businesses are, we explore the prevalence of sanitation issues and identify areas that need additional support from DSNY. ##### Summary & Intention -On September 12, 2023, the Committee on Sanitation and Solid Waste Management held an oversight hearing on DSNY's initiatives to address street cleanliness. In addition, the committee heard a series of legislation related to other sanitation concerns (for full list see recommendations section). +On September 12, 2023, the Committee on Sanitation and Solid Waste Management held an oversight hearing on DSNY's initiatives to address street cleanliness. In addition, the committee heard a series of legislation related to other sanitation concerns (for a full list see the recommendations section). The data team provided analysis on: - The prevalence of several types of sanitation issues by referencing 311 complaints and OATH violations - Areas of concern, particularly exploring the relation of areas where businesses are to commercial waste +Using data from OATH, 311, and data sources related to where businesses are, we explore the prevalence of sanitation issues and identify areas that need additional support from DSNY. + #### Main Takeaways -- Dirty conditions were the most prevalent issue in our analysis, receiving both the highest number of OATH violations and 311 complaints -- The proportion of OATH violations that go to businesses is xxx -- Looking at additional areas of concern, the top two streets with the most OATH violations per property and the top street with the most OATH violations overall were located in the Bronx +- Dirty conditions were the most prevalent issue in our analysis, receiving both the highest number of OATH violations and 311 complaints. While most NYC streets have few dirty sidewalk OATH violations, less than three, there are eight streets that have more than 50 violations per total number of properties on that street. +- The proportion of OATH violations that go to businesses is xxx. The businesses with the most dirty sidewalk violations/complaints are located in Southwest Queens on Rockaway Parkway, with 70 complaints per business, and in Floral Park on Union Turnpike with 50 violations/complaints, also in Queens. +- 311 derelict vehicle and illegal dumping calls have increased over time but have had fewer OATH violations issued. There were 18 derelict vehicle calls and 39 illegal dumping calls for each violation made. While there was only 1 dirty conditions call for every 4 violations. + #### Recommendations To address this issue, the Committee on Sanitation and Solid Waste Management will be hearing the following legislation: @@ -35,3 +37,6 @@ To address this issue, the Committee on Sanitation and Solid Waste Management wi - Emergency and resiliency plans of the department of sanitation. [Read the bill: Int 0861-2022](https://nyc.legistar.com/LegislationDetail.aspx?ID=5971622&GUID=DE19832C-5B9E-423A-9FF6-F8C884928D6F&G=2FD004F1-D85B-4588-A648-0A736C77D6E3&Options=&Search=) - Expanding the commercial citywide routing system for sidewalk cleanliness violations and technical amendments thereto, including to repeal and reenact subdivision c of section 16-118.1. [Read the bill: Int 0981-2023](https://nyc.legistar.com/LegislationDetail.aspx?ID=6165363&GUID=7DF17D92-232A-4E2D-8D8A-E5E9A0643B3E&G=2FD004F1-D85B-4588-A648-0A736C77D6E3&Options=&Search=) - Removal of abandoned or derelict vehicles. [Read the bill: Int 1032-2023](https://nyc.legistar.com/LegislationDetail.aspx?ID=6202973&GUID=F6F6C2DF-857C-4815-9605-42A165DF4BFD&G=2FD004F1-D85B-4588-A648-0A736C77D6E3&Options=&Search=) + +#### Methodology +#### Scripts From eeea170aa3ea89c61349b3e84dcf3025f6902f9e Mon Sep 17 00:00:00 2001 From: Rose Martinez <44377052+romartinez-nycc@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:23:34 -0400 Subject: [PATCH 11/12] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 565b762..34bb3cf 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,23 @@ To address this issue, the Committee on Sanitation and Solid Waste Management wi - Removal of abandoned or derelict vehicles. [Read the bill: Int 1032-2023](https://nyc.legistar.com/LegislationDetail.aspx?ID=6202973&GUID=F6F6C2DF-857C-4815-9605-42A165DF4BFD&G=2FD004F1-D85B-4588-A648-0A736C77D6E3&Options=&Search=) #### Methodology +Our timeframe for the analysis is from August 1, 2022 - August 31, 2023. + +###### Street Cleanliness Categories +[Fill in] + +###### Dirtiest Streets: Streets with the Highest Number of Dirty Sidewalk/Littering OATH Violations +- Using the API, we queried all violations issued by Sanitation and then manually grouped similar charge_1 codes into categories. The complete list of charge codes that were grouped is available [here](https://github.com/NewYorkCityCouncil/street_cleanliness_sept23/blob/main/data/output/oath_codes/oath_charges_grouped.csv). +- The charge_1 codes for Dirty Sidewalk and Littering were used to pull any violations not captured by just querying the issuing agency. +- Joined violations to the property boro, block & lot dataset (PLUTO) to get lat/long for mapping. +- Joined to the property addresses dataset (PAD) to get the street segment id which is needed to then join to the streets (LION) data. +- Aggregated the yearly number of violations to each street. (Dirty Sidewalk/Littering Violations --> BBL --> PAD --> Streets) +- Removed streets with no violations. +- Normalized the aggregated counts by the total number of properties facing, associated with, or that matched to the street. + +###### Commercial Waste & Businesses +[Fill in] + +###### Littering Complaints & Baskets +[Fill in] #### Scripts From 6d3e848a00be7a465a9827da0675b51400571b94 Mon Sep 17 00:00:00 2001 From: Rose Martinez <44377052+romartinez-nycc@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:30:40 -0400 Subject: [PATCH 12/12] Update README.md additional datasets --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 34bb3cf..2fadb98 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,16 @@ An associated webpage for this analysis can be found on the [council website](ht *** -#### Data Sources +#### Open Data Sources - [Vacant storefront registration](https://data.cityofnewyork.us/City-Government/Storefronts-Reported-Vacant-or-Not/92iy-9c3n) - [DCA licenses](https://nycopendata.socrata.com/Business/Legally-Operating-Businesses/w7w3-xahh/data) - [Restaurants](https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/43nn-pn8j) - [OATH Violations](https://data.cityofnewyork.us/City-Government/OATH-Hearings-Division-Case-Status/jz4z-kudi) - [311 Complaints](https://data.cityofnewyork.us/Social-Services/311-Service-Requests-from-2010-to-Present/erm2-nwe9) - [DSNY Litter Baskets](https://data.cityofnewyork.us/dataset/DSNY-Litter-Basket-Inventory/8znf-7b2c) +- [LION](https://data.cityofnewyork.us/City-Government/LION/2v4z-66xt) +- [PLUTO](https://data.cityofnewyork.us/City-Government/Primary-Land-Use-Tax-Lot-Output-PLUTO-/64uk-42ks) +- [PAD](https://data.cityofnewyork.us/City-Government/Property-Address-Directory/bc8t-ecyu) ##### Summary & Intention