Skip to content

Commit a5b98a1

Browse files
committed
Building data pipeline
1 parent f2d4290 commit a5b98a1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/processing/drug_normalizer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,11 @@ def normalize_drugs(df: pd.DataFrame) -> pd.DataFrame:
7575
for row in df.to_dict(orient="records"):
7676

7777
base_drugs = split_combination_drug(row["generic_name"])
78-
7978
dosage_forms = extract_dosage_forms(row["dosage"])
8079

8180
normalized_rows.append(
8281
{
83-
**row._asdict(),
82+
**row,
8483
"base_drugs": base_drugs,
8584
"combination": len(base_drugs) > 1,
8685
"dosage_forms": dosage_forms,

0 commit comments

Comments
 (0)