Fix I4: drop row with "" on locataire ans Période

This commit is contained in:
Bertrand Benjamin 2023-07-05 18:13:41 +02:00
parent f9be31c090
commit 90c2d3689b

View File

@ -139,8 +139,6 @@ def join_row(table):
}
)
joined.append(row)
else:
pass
return joined
@ -163,4 +161,6 @@ def table2df(tables):
numeric_cols = [k for k, v in DF_TYPES.items() if v == float]
df[numeric_cols] = df[numeric_cols].replace("", np.nan)
df = df.drop(df[(df["Locataires"] == "") & (df["Période"] == "")].index)
return df.astype(DF_TYPES)