From f31de22693602ee768c9f4ee4942bd5a9b16cea0 Mon Sep 17 00:00:00 2001 From: Chahrazad650 Date: Wed, 25 Feb 2026 03:49:36 +0100 Subject: [PATCH] Q9 suppression les lignes sans appellation --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9bebe0e..5747f74 100755 --- a/main.py +++ b/main.py @@ -12,11 +12,12 @@ def main() -> None: path: str = normpath(join(getcwd(), argv[1])) db: DataFrame = read_csv(path) print(db.all()) - print(db.head()) print(db.info()) print("\nnombre de valeurs manquantes pour chaque colonne :") print(db.isna().sum()) - + db = db.dropna(subset=["Appellation"]) + db.to_csv("donnee_clean.csv", index=False) + print(db.isna().sum()) if __name__ == "__main__": try: