LightMySky
En anglais

Cleaning Real Data: Missing, Duplicated and Wrong

Real datasets have blanks, repeats, impossible values and three spellings of the same city. Every repair is a decision that changes the result, so a cleaning step has to be written down and defended rather than done quietly.

Commence ce sujetPas besoin de compte. La progression est enregistrée dans ce navigateur.

Ce que l'enfant saura faire ensuite

  • Decide between dropping, filling and flagging a column of missing values, with a reason
  • Find duplicates that are not exact copies and choose a matching rule
  • Say how a cleaning choice could change the conclusion of the analysis

1 · Lis

Real data has blanks, repeats, impossible values, and three spellings of one city. Every repair changes the result, so you write each cleaning step down and defend it rather than tidying quietly.

Try it together

A city column reads Springfield, springfield, and SPRINGFIELD. You set one matching rule, lower case and trim spaces, and the three collapse into one city. A stable id number never shifts like spelling does, so rows with different ids stay two things.

For missing values you choose drop, fill, or flag, and say why. A blank key is as broken as a repeated one, so rows missing their key need a plan. Dropping fits when the gaps are few and unrelated to the question, while dropping a third of the rows can move the answer.

Before you clean, ask how each choice could move the conclusion. Then write the rule down, because a different rule can give a different answer.

Match near duplicates with one written rule, handle blanks by drop, fill or flag, and show how each choice moves the answer.

The rewritten primary-key reading was written for this dataset. Reading summaries adapted from OER Commons records (Introduction to Data-Centric AI); license not recorded.

2 · Regarde

En anglais

Sans écran

Imprimer une fiche d'exercicesFormat A4, avec une page de corrigés pour les adultes. Sans écran, sans internet.

Où se situe ce sujet

Puis s'entraîner

8 questions attendent derrière cette leçon, chacune avec sa réponse expliquée. Chaque réponse nourrit le ciel : les étoiles s'allument à mesure qu'elles sont apprises, et pâlissent quand vient le moment de revenir.

Commence ce sujet