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