Skip to content

Commit

Permalink
fix: clean whole dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
babslgam committed Mar 14, 2024
1 parent a0c6e45 commit 83209dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apis_ontology/scripts/import_vorlass_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def parse_sigle_excel(file):
df_filtered = df[(df["Werktyp"].notnull()) | (df["status"].notnull())].replace(
{np.nan: None}
)
for index, row in df_filtered.iterrows():

df_cleaned = df_filtered.map(lambda x: x.strip() if isinstance(x, str) else x)

for index, row in df_cleaned.iterrows():
title_siglum_dict[row["Name"] + row["abgeleitet von"]] = row.to_dict()
parse_vorlass_xml(title_siglum_dict)
return success, failure
Expand Down

0 comments on commit 83209dc

Please sign in to comment.