From 23a30fe4377b651636ecb786a7d8a8a7d0587afd Mon Sep 17 00:00:00 2001 From: Katon Minhas Date: Tue, 28 Jan 2025 21:14:14 +0000 Subject: [PATCH] Merged in bugfix/remove_aarete_derived_claim_type (pull request #365) Commented out AARETE_DERIVED_CLAIM_TYPE_CD - move this to aarete_derived.py * Commented out AARETE_DERIVED_CLAIM_TYPE_CD - move this to aarete_derived.py Approved-by: Alex Galarce --- fieldExtraction/src/investment/postprocess.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fieldExtraction/src/investment/postprocess.py b/fieldExtraction/src/investment/postprocess.py index b98c230..5eb1562 100644 --- a/fieldExtraction/src/investment/postprocess.py +++ b/fieldExtraction/src/investment/postprocess.py @@ -14,11 +14,11 @@ def postprocess(df): # Add postprocessing here - # applying crosswalk for AARETE_DERIVED_CLAIM_TYPE_CD - claim_type_mapping_path = os.path.join(MAPPINGS_DIR,"crosswalk_claim_type.json") - claim_type_crosswalk = CrosswalkBuilder().from_json(str(claim_type_mapping_path)) - print(claim_type_crosswalk.mapping) - df['AARETE_DERIVED_CLAIM_TYPE_CD'] = df['AARETE_DERIVED_CLAIM_TYPE_CD'].apply(lambda x: apply_crosswalk(str(x), claim_type_crosswalk.mapping) if pd.notna(x) else x) + # # applying crosswalk for AARETE_DERIVED_CLAIM_TYPE_CD + # claim_type_mapping_path = os.path.join(MAPPINGS_DIR,"crosswalk_claim_type.json") + # claim_type_crosswalk = CrosswalkBuilder().from_json(str(claim_type_mapping_path)) + # print(claim_type_crosswalk.mapping) + # df['AARETE_DERIVED_CLAIM_TYPE_CD'] = df['AARETE_DERIVED_CLAIM_TYPE_CD'].apply(lambda x: apply_crosswalk(str(x), claim_type_crosswalk.mapping) if pd.notna(x) else x) return df