Fix I4: drop row with "" on locataire ans Période #6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user