Skip to content

Commit a53f72e

Browse files
committed
updates to field names, added org_id to some more tables
1 parent 4224ea4 commit a53f72e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def process_files(si, ss):
260260
maf8['yrs_since_last_service_improvement'] = maf8['report_yr']-maf8['last_service_improvement_yr']
261261
maf8['last_service_improvement_within_1_yr'] = maf8['yrs_since_last_service_improvement'] <= 1
262262

263-
maf8 = maf8.groupby(['fiscal_yr', 'department_en', 'org_id']).agg(
263+
maf8 = maf8.groupby(['fiscal_yr', 'department_en','department_fr', 'org_id']).agg(
264264
improved_services_count=('last_service_improvement_within_1_yr', 'sum'),
265265
service_count=('service_id', 'nunique')
266266
).reset_index()

src/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def sid_list(si):
6060
]
6161
]
6262

63+
sid_list = sid_list.rename(columns={'fiscal_yr': 'latest_fiscal_yr'})
64+
6365
export_to_csv(
6466
data_dict={'sid_list': sid_list},
6567
output_dir=UTILS_DIR

0 commit comments

Comments
 (0)