Skip to content
Edition NigeriaGlobal
Country

You are in the Nigeria edition. Type your country to switch.

Set up your profile

AI for data analysis: spreadsheets and BI · Lesson 2 of 9

Cleaning data with AI help

Messy data produces confident wrong answers. This lesson covers duplicates, inconsistent labels, types and dates and missing values, how to ask an assistant for cleaning steps you can repeat, and how to log every change, with a worked cleaning of a sheet of orders.

Intermediate11 min read5 steps

This lesson is complete in writing. A video for it is on its way.

What you will learn

  • By the end you can recognise the four common kinds of mess: duplicates, inconsistent labels, wrong types and dates, and missing values.
  • You can ask an assistant for cleaning steps you can read, run and repeat, rather than a cleaned file you cannot inspect.
  • You can keep a cleaning log whose row counts reconcile from the raw export to the usable data.
  • You can use data validation rules to stop the same mess arriving again.

Key terms in this lesson

Deduplication
Finding and removing repeated records in a data set, after first deciding which fields must match for two rows to count as the same record.
Missing value
A blank in a dataset where a figure should be. It is not the same as zero.
Data validation rule
A rule that checks each value meets a condition, such as falling within a date range or appearing on an allowed list, so that bad entries are caught.

Step 1 of 5

Why cleaning comes first

Opening this step…

Step 2 of 5

Duplicates: decide first, then remove

This step opens when you finish the one above.

Step 3 of 5

Labels, types and dates

This step opens when you finish the one above.

Step 4 of 5

Missing values: choose a treatment

This step opens when you finish the one above.

Step 5 of 5

A worked cleaning with a log

This step opens when you finish the one above.

Key takeaways

The key takeaways open when you finish every step.

Lesson quiz

5 questions. You need 85% to pass.

The quiz opens when you finish every step.

Read first

Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.

Up next

English