Find a course
Age level: University students (18–25)IntermediateData & AI

Data Cleaning Essentials

Fix missing values, messy text, bad dates, duplicates and outliers with a repeatable process

⏱ 2 h 40 min5 modules · 12 lessons65 practice questionsFinal exam: 20 questions
Included with this course

Your certificate for this course

Finish the 12 lessons (about 2 h 40 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons12 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Profile a new dataset and turn types, missing counts, distinct values and summary statistics into a list of concrete problems
  • Recognize disguised missing values and reason about MCAR, MAR and MNAR before choosing to drop, impute or flag
  • Parse numbers stored as text, mixed units, regional formats and ambiguous dates into clean, consistent types
  • Standardize text and categories with normalization, mapping tables and carefully reviewed fuzzy matching
  • Define keys and table grain, find exact and near duplicates and apply survivorship rules
  • Detect outliers with the IQR rule and z-scores and decide whether to correct, cap, keep or remove them
  • Write validation rules, including cross-field, referential integrity and aggregate checks, and quarantine failures
  • Reshape and join tables safely and package cleaning into a reproducible, documented pipeline

About this course

Every analysis, dashboard and machine learning model sits on top of data that someone had to clean first. Real data arrives with blanks disguised as -999, prices stored as text, cities spelled five ways, dates that could mean March or April, customers who appear three times and a $95 million house that was really a typo. Skip the cleaning and the numbers still come out, confidently and wrongly.

This free course teaches a practical, repeatable approach to data cleaning. You'll start by profiling a dataset to find problems before they find you, using distinct counts, value counts and summary statistics as smoke detectors. Then you'll work through the big families of problems one at a time: missing values and the MCAR, MAR and MNAR mechanisms behind them, numbers trapped in text, inconsistent labels, ambiguous dates and time zones, duplicate records, outliers and broken relationships between fields and tables.

For each problem you'll learn why it happens, how to detect it, which fixes are safe and what each choice does to your results. Dropping rows, imputing medians, capping outliers and merging duplicates all move your conclusions, so the course shows you how to make those decisions deliberately and document them.

The course is for students and early-career analysts who know the basics of spreadsheets or Python and want to work with real, messy data. Code challenges use plain Python that runs right in your browser, with notes on the matching pandas and SQL commands. You'll finish by turning everything into a reproducible pipeline with validation rules, a cleaning log and a data dictionary. Pass the final exam to earn a free certificate of completion.

Syllabus

  1. Why Data Gets Messy

    What clean data means, how dirty data misleads decisions, and how to profile a new dataset before you trust a single number from it.

    1. What Data Cleaning Is and Why It Matters13 min
    2. Profiling a Dataset Before You Trust It13 min
  2. Missing Values

    Why values go missing, how to recognize missing data in disguise, and how to choose between dropping, imputing and flagging without biasing your results.

    1. Why Values Go Missing: MCAR, MAR and MNAR13 min
    2. Handling Missing Values: Drop, Impute or Flag14 min
  3. Fixing Values and Types

    Turn numbers stored as text into real numbers, standardize messy labels and categories, and parse dates and times without silent mix-ups.

    1. Numbers Stored as Text and Other Type Problems14 min
    2. Cleaning Text and Standardizing Categories14 min
    3. Parsing Dates and Times Correctly14 min
  4. Duplicates, Outliers and Validation

    Find and resolve duplicate records, tell errors from genuine extremes, and write validation rules that catch bad data automatically.

    1. Duplicates and Keys14 min
    2. Outliers: Errors or Real Extremes?14 min
    3. Validation Rules: Making Data Prove Itself14 min
  5. Reshaping, Joining and Reproducible Cleaning

    Reshape tables between wide and long, join them without losing or multiplying rows, and package every cleaning step into a pipeline you can rerun and defend.

    1. Reshaping and Joining Tables Safely14 min
    2. Building a Reproducible Cleaning Pipeline15 min
  6. Final exam and certificate

    20 questions drawn from a pool of 32. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

Which column breaks the "each value in its own cell" rule of tidy data?

  1. tags containing values like "gift; express; fragile"
  2. amount containing values like 49.90
  3. order_date containing values like 2025-03-14
  4. customer_id containing values like C-10442
Show the answer

Answer: A. tags containing values like "gift; express; fragile"

The tags cell holds three separate values in one string, so you cannot count, filter or group by tag without splitting it first. Dates, amounts and IDs are single values per cell. The fix is usually a separate table with one row per order and tag.

Data profiling
A systematic first look at a dataset: row counts, types, missing values, distinct counts, ranges and frequent values, used to find likely problems.
Tidy data
A layout where each variable is a column, each observation is a row and each value sits in its own cell.
Sentinel value
A special number such as -999 or 9999 used to mean "unknown", which corrupts calculations if treated as real data.
MCAR
Missing completely at random: the chance a value is missing is unrelated to any data, observed or unobserved.
MAR
Missing at random: missingness depends on other recorded variables but not on the missing value itself once those are accounted for.
MNAR
Missing not at random: the chance a value is missing depends on the unobserved value itself, such as high earners skipping an income question.

Frequently asked questions

What is data cleaning?

Data cleaning is the process of finding and fixing problems in a dataset so it accurately describes reality: missing or disguised values, wrong types, inconsistent spellings, invalid dates, duplicates, outliers and broken relationships between tables. It includes documenting every change so results can be reproduced.

Do I need to know pandas for this course?

No. The code challenges use plain Python with lists and dictionaries, so you understand exactly what each cleaning step does. Explanations mention the equivalent pandas and SQL commands, which makes it easy to apply the ideas in those tools afterward.

Should I delete rows with missing values?

Only when few rows are affected and the values seem to be missing at random. Dropping rows can discard a lot of data quickly and bias results if the missing rows differ from the rest. Median or group-wise imputation with a missing flag is often a better choice.

How do I know if an outlier is an error?

Detection rules such as the IQR fences or z-scores only tell you a value is unusual. To decide whether it is an error, check the source record, units, related fields and domain knowledge. Fix proven errors, and keep real extremes, using robust statistics if they distort averages.

What is the difference between data cleaning and data wrangling?

The terms overlap. Cleaning usually means fixing errors and inconsistencies, while wrangling also includes reshaping, joining and transforming data into the form an analysis needs. This course covers both, since reshaping and joining are where many cleaning problems appear.

How long does data cleaning take in real projects?

Often longer than the analysis itself, especially with data from several systems. A reproducible pipeline with validation rules makes the second and later runs much faster, because the rules and mappings you built once are applied automatically to new data.

Is the certificate an accredited qualification?

No. It is a free certificate of completion showing that you finished the course and passed the final exam. It is a good way to show initiative, but it is not a university credit or professional certification.

Sources and further reading

Related courses

University studentsIntermediate

Python for Data Science

NumPy, pandas, data cleaning, charts and a first model with scikit-learn

Data & AI
2 h 50 min12 lessonsCertificate
Adults & professionalsBeginner

Data Analysis Fundamentals

Ask good questions, clean data, summarize it honestly and turn numbers into decisions

Data & AI
2 h 20 min12 lessonsCertificate
University studentsIntermediate

Machine Learning Fundamentals

Regression, classification, evaluation and clustering, explained with live models and code

Data & AI
2 h 50 min11 lessonsCertificate
Adults & professionalsIntermediate

Statistics for Data Analysis

The statistics analysts use every day, from skewed averages to A/B tests

Data & AI
2 h 20 min11 lessonsCertificate
Adults & professionalsBeginner

Data Visualization Basics

Choose the right chart, design it clearly and present data honestly

Data & AI
2 h 5 min11 lessonsCertificate
University studentsIntermediate

Database Design Basics

ER diagrams, keys, normalization and SQL schemas that stay correct

Data & AI
2 h 45 min12 lessonsCertificate