mirror of
https://github.com/guezoloic/millesima-ai-engine.git
synced 2026-03-28 18:03:47 +00:00
Q9 suppression les lignes sans appellation
This commit is contained in:
5
main.py
5
main.py
@@ -12,11 +12,12 @@ def main() -> None:
|
|||||||
path: str = normpath(join(getcwd(), argv[1]))
|
path: str = normpath(join(getcwd(), argv[1]))
|
||||||
db: DataFrame = read_csv(path)
|
db: DataFrame = read_csv(path)
|
||||||
print(db.all())
|
print(db.all())
|
||||||
print(db.head())
|
|
||||||
print(db.info())
|
print(db.info())
|
||||||
print("\nnombre de valeurs manquantes pour chaque colonne :")
|
print("\nnombre de valeurs manquantes pour chaque colonne :")
|
||||||
print(db.isna().sum())
|
print(db.isna().sum())
|
||||||
|
db = db.dropna(subset=["Appellation"])
|
||||||
|
db.to_csv("donnee_clean.csv", index=False)
|
||||||
|
print(db.isna().sum())
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user