Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Basics of Data Analysis ยท Lesson 4 of 9

Module Three

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
4
Module 3: Data Cleaning and Preparation (Ages 13+)

๐Ÿงน Module 3: Data Cleaning and Preparation

Basics of Data Analytics

Made for 13-year-olds โ€” turn messy data into clean, usable data!

โฐ Time Needed: About 1 week (3โ€“4 short lessons)

๐ŸŽฏ Big Goal: Learn how to spot and fix problems in data so you can trust your results

๐Ÿงฐ What You Need: A notebook, pencil, and a computer with a spreadsheet app (Excel or Google Sheets)

๐ŸŒŸ What Will You Learn?

By the end of this module, you will be able to:

  • Explain why data is often messy โ€” and why cleaning it matters.
  • Spot common data problems like missing values, duplicates, and typos.
  • Fix simple data problems in a spreadsheet.
  • Decide what to do when data is missing or wrong.
  • Understand why cleaning data is one of the most important steps in analytics.

๐Ÿง  Lesson 1: Why Is Data Messy?

Here's a surprise: real data is almost always messy. People make typos, skip questions, enter things twice, or write the same thing in different ways.

๐Ÿณ Think of it like cooking: Before you can cook a meal, you have to wash the vegetables, remove the bad parts, and chop everything up. Data cleaning is the same โ€” you're preparing your ingredients before you "cook" (analyze) them.

Real-Life Messy Data Examples

  • ๐Ÿ“ A survey where one person wrote their age as "13", another wrote "thirteen", and another wrote "13 years".
  • ๐Ÿ“‹ A class list where "Sara" is spelled "Sarah" on one page and "Sara" on another.
  • ๐Ÿ“ฑ A form where some people skipped the "favorite color" question.
  • ๐Ÿ€ A sports app that lists a player's height as "5'9"" in one place and "175 cm" in another.
๐Ÿ’ก Key Idea: If you analyze messy data, you'll get messy (and wrong!) answers. Cleaning comes before analysis โ€” always.

๐Ÿ” Lesson 2: The Four Common Data Problems

Most messy data has one of these four problems. Learn to spot them!

1. Missing Values ๐Ÿ•ณ๏ธ

Some cells are empty. Maybe someone skipped a question, or the data got lost.

Example:

NameAgeFavorite Sport
Alex13Basketball
Jordanโ€”Soccer
Sam12โ€”

2. Duplicates ๐Ÿ‘ฏ

The same entry appears more than once. This can happen if someone clicks "submit" twice.

Example:

NameAgeFavorite Sport
Alex13Basketball
Alex13Basketball
Sam12Soccer

3. Typos and Inconsistent Spelling โœ๏ธ

The same thing is written in different ways.

Example:

NameFavorite Sport
Alexsoccer
JordanSoccer
SamSOCCER
Rileysocer

These all mean the same thing โ€” but a computer sees them as four different sports!

4. Outliers ๐ŸŽฏ

A value that's way off from the rest. It might be a real number, or it might be a mistake.

Example: A class of 13-year-olds where someone wrote their age as 113 โ€” probably a typo!

๐Ÿ’ก Key Idea: Most data problems fall into these four categories. Once you know what to look for, spotting them becomes easy!

๐Ÿ› ๏ธ Lesson 3: How to Fix Data Problems

Here's what you can do about each problem:

Problem What You Can Do Example
Missing values Leave it blank, fill it in if you know the answer, or remove the whole row If someone skipped "favorite color," you can't guess โ€” so mark it as "unknown"
Duplicates Delete the extra copies Remove the second "Alex" row if it's identical
Typos / inconsistent spelling Pick one spelling and use it everywhere Change "socer", "SOCCER", and "Soccer" all to "Soccer"
Outliers Double-check the value โ€” is it real or a mistake? An age of 113 for a 13-year-old is probably a typo for 13
โš ๏ธ Important: Never make up data just to fill a gap. If you don't know, it's better to mark it as "missing" than to guess. Honesty matters in data analysis!
๐Ÿงน Think of it like cleaning your room: You don't throw away everything โ€” you sort what you have, throw out the trash, and put things where they belong. Data cleaning works the same way: sort, fix, and organize!

๐Ÿ’ป Lesson 4: Cleaning Data in a Spreadsheet

Spreadsheets have tools that make cleaning easier. Here are the ones you'll use most:

๐Ÿ”Ž Find and Replace

Use it to fix typos fast. For example, replace all "socer" with "Soccer" in one click.

๐Ÿ“Š Sort

Sort a column Aโ†’Z to group similar values together. Duplicates and typos become easy to spot!

๐ŸŽจ Filter

Filter a column to show only blank cells โ€” that's how you find missing values quickly.

๐Ÿงฎ Remove Duplicates

Most spreadsheets have a "Remove Duplicates" button that cleans repeated rows automatically.

๐Ÿ’ก Pro Tip: Always make a copy of your data before cleaning it. That way, if you make a mistake, you still have the original!
๐Ÿ“ธ Think of it like a photo: Always keep the original photo before you start editing it. If you mess up, you can always go back to the original!

๐ŸŽฏ Fun Activity: Clean the Messy Class List

Your Mission: Clean up this messy class survey data!

Copy this table into a spreadsheet:

NameAgeFavorite Subject
Alex13math
Jordanโ€”Science
Sam12Math
Alex13math
Riley113sciense
Sam12English
Taylor13โ€”
Jordan12science
Sam12Math

Your tasks:

  1. Find and remove any duplicate rows.
  2. Find any missing values and decide what to do with them.
  3. Fix any typos in the "Favorite Subject" column (make them all the same).
  4. Find any outliers and think about whether they're mistakes.
  5. Write down what you changed and why.

Submit: Your cleaned spreadsheet + a short list of every change you made and your reason for it.

๐Ÿ“ Quick Quiz

  1. Why is it important to clean data before analyzing it?
  2. Name the four common data problems we learned about.
  3. What should you do if a value is missing and you can't figure out the real answer?
  4. Why is "soccer" different from "Soccer" to a computer?
  5. Name one spreadsheet tool that helps clean data.
  6. Why should you always make a copy of your data before cleaning it?

๐Ÿ”‘ Key Words to Remember

  • Data cleaning โ€” fixing or removing messy, wrong, or incomplete data.
  • Missing value โ€” an empty cell where data should be.
  • Duplicate โ€” a row that appears more than once.
  • Outlier โ€” a value that's very different from the rest.
  • Inconsistent data โ€” the same thing written in different ways.
  • Raw data โ€” the original, uncleaned data you start with.
  • Clean data โ€” data that's ready to analyze.
  • Find and Replace โ€” a spreadsheet tool for fixing typos quickly.
  • Remove Duplicates โ€” a spreadsheet tool for deleting repeated rows.

๐Ÿ“š Want to Learn More?

  • Ask a parent or teacher to help you download a free dataset and try cleaning it yourself.
  • Try the free "Data Cleaning" lesson on Kaggle Learn.
  • Practice with a family member's old spreadsheet (with permission!).
  • Look at a messy list of anything โ€” your music playlist, your contacts, your game stats โ€” and see how you'd clean it up.
๐ŸŽ‰ Big Idea: Cleaning data is like tidying your room โ€” it takes time, but once it's done, you can actually find what you need and get things done!

© 2026 Basics of Data Analytics โ€” Module 3 (Ages 13+)

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’