Skip to content

Commit 427b251

Browse files
committed
add dob_permitissuance ingest template
1 parent 444ef99 commit 427b251

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

dcpy/library/templates/dob_permitissuance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# migrated to ingest
12
dataset:
23
name: dob_permitissuance
34
acl: public-read
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
id: dob_permitissuance
2+
acl: public-read
3+
4+
attributes:
5+
name: The Department of Buildings (DOB) issues permits
6+
description: |
7+
The Department of Buildings (DOB) issues permits for
8+
construction and demolition activities in the City of New York.
9+
The construction industry must submit an application to DOB with
10+
details of the construction job they would like to complete.
11+
The primary types of application, aka job type, are: New Building,
12+
Demolition, and Alterations Type 1, 2, and 3. Each job type can
13+
have multiple work types, such as general construction, boiler,
14+
elevator, and plumbing. Each work type will receive a separate permit.
15+
(See the DOB Job Application Filings dataset for information about each job application.)
16+
Each row/record in this dataset represents the life cycle of one permit for one work type.
17+
The dataset is updated daily with new records, and each existing record will be
18+
updated as the permit application moves through the approval process to reflect the
19+
latest status of the application.
20+
url: https://data.cityofnewyork.us/d/ipu4-2q9a
21+
22+
ingestion:
23+
source:
24+
type: socrata
25+
org: nyc
26+
uid: ipu4-2q9a
27+
format: csv
28+
file_format:
29+
type: csv
30+
dtype: str
31+
processing_steps:
32+
- name: rename_columns
33+
args:
34+
map:
35+
"Job #": jobnum
36+
"Job doc. #": jobdocnum
37+
"Job Type": jobtype
38+
"Issuance Date": issuancedate
39+
drop_others: True
40+
- name: filter_rows
41+
args:
42+
type: equals
43+
column_name: jobdocnumber
44+
val: '01'
45+
- name: filter_rows
46+
args:
47+
type: contains
48+
column_name: jobtype
49+
val: 'A1|A2|DM|NB'

0 commit comments

Comments
 (0)