AI for a Small BusinessLesson 69 of 88

Module 8 · Learning from your own numbers

Why cleaning is most of the job

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 2 of 9 in this chapter

This chapter’s goalGet a defensible answer out of a year of your own transactions: clean it so the counts mean something, make the tool show the code that produced every figure, beat a stated naive baseline before believing any forecast, read a classifier against its base rate rather than its accuracy, name the leak that would have flattered it, and say when the data is too small to support the question and an experiment is the honest alternative.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
The five faults in every real exportDuplicatesThe same order exported twice, one customer undertwo records. Count rows, count distinct identifiers,and find out why they differ before anything else.Dates as text03/04/2026 is March to half the world and April tothe other half. Above the twelfth the guess isforced and correct; below it the guess is silent andmay be six months out.Numbers as textA currency symbol, a comma, a trailing space, andthe column sums only the rows that parsed. The totalis plausible and wrong by exactly the rows you didnot notice.Categories that multiplyRepair, repair, Repairs, REPAIR. Five categories toa computer and one to you, splitting every count andevery chart along lines you cannot see.Missing valuesA blank, a zero and the word N/A are three differentthings. Treating a blank as a zero turns we did notrecord this into this was nothing.Sixty to eighty per cent of the work is here, and it is the analysis rather than preparation for it.Never clean in place: keep the raw export, write the cleaning down as steps you can rerun, and put theresult in a new file.
Sixty to eighty per cent of the work is here, and it is the analysis rather than preparation for it. Never clean in place: keep the raw export, write the cleaning down as steps you can rerun, and put the result in a new file.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The unglamorous majority

People who do this for a living put the share of time spent preparing data somewhere between 60 and 80%. That is not a failing of their tools. It is what the job is, and it is worth knowing before you start, so that the afternoon you spend fixing dates does not feel like a detour.

The five faults you will actually meet

Duplicates. The same order exported twice, the same customer under two records. Check by counting rows and counting distinct identifiers; if they differ, find out why before doing anything else.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI at Work exam.

Stuck on something?Ask Yetunde, your AI tutor

How to cite: Addaly (2026) ‘Why cleaning is most of the job’, in AI for a Small Business. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-for-small-business/cleaning-before-counting (Accessed: 29 November 2026).