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

Merged
lafrite merged 1 commits from i4_ligne_vide into main 2023-07-05 16:10:36 +00:00

View File

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