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
This commit is contained in:
Katon Minhas
2025-01-28 21:14:14 +00:00
parent 147a2aa4b1
commit 23a30fe437
@@ -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