-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dataset for HPD underlying conditions program (#333)
Adds dataset for HPD underlying conditions program. Note that all of the values for orderissuedate are invalid currently (year of "0201" and "0202"), but I've submitted a report on Open Data and in the past HPD has fixed this kind of thing quickly so I'm going to make it as a text column for now and leave the values as-is, rather than trying to manually fix this in the sql or something.
- Loading branch information
Showing
7 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
files: | ||
- | ||
url: https://data.cityofnewyork.us/api/views/xpbf-ithr/rows.csv?accessType=DOWNLOAD | ||
dest: hpd_underlying_conditions.csv | ||
sql: | ||
- hpd_underlying_conditions.sql | ||
schema: | ||
table_name: hpd_underlying_conditions | ||
fields: | ||
BuildingId: integer | ||
Borough: text | ||
NumberPhn: text | ||
Street: text | ||
TotalUnits: integer | ||
OrderIssueDate: text | ||
CurrentStatus: text | ||
Postcode: char(5) | ||
Latitude: numeric | ||
Longitude: numeric | ||
CommunityBoard: text | ||
CouncilDistrict: text | ||
Bin: char(7) | ||
Bbl: char(10) | ||
CensusTract2020: text | ||
Nta2020: text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CREATE INDEX hpd_underlying_conditions_bbl_idx ON hpd_underlying_conditions (bbl); | ||
CREATE INDEX hpd_underlying_conditions_orderissuedate_idx ON hpd_underlying_conditions (orderissuedate); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BUILDING_ID,BOROUGH,Number (PHN),STREET,TOTAL_UNITS,ORDER_ISSUE_DATE,CURRENT_STATUS,POSTCODE,LATITUDE,LONGITUDE,COMMUNITY BOARD,COUNCIL DISTRICT,BIN,BBL,CENSUS TRACT (2020),NTA (2020) | ||
93750,Bronx,679,MAGENTA STREET,37,10/24/0201,Discharged,10467,40.875293,-73.867797,12,12,2056950,2046280001,374,Williamsbridge-Olinville | ||
85997,Bronx,3644,HOLLAND AVENUE,12,10/20/0201,Discharged,10467,40.879775,-73.863438,12,12,2057860,2046620040,380,Williamsbridge-Olinville | ||
57762,Bronx,1142,COLLEGE AVENUE,30,12/12/0202,Discharged,10456,40.831147,-73.914322,4,16,2002258,2024340015,175,Concourse-Concourse Village | ||
25930,Manhattan,200,NAGLE AVENUE,48,10/30/0201,Discharged,10034,40.862103,-73.923371,12,10,1064715,1022170035,291,Inwood | ||
89073,Bronx,1465,JESUP AVENUE,55,10/27/0201,Discharged,10452,40.842813,-73.91957,4,16,2008689,2028720207,21302,Mount Eden-Claremont (West) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters