Skip to content
← All datasets
Dataset collection

Dirty Datasets for Data Cleaning Practice, With Answer Keys

Free dirty datasets at beginner, intermediate, and advanced levels. Each has an answer key listing every injected issue and a clean file to compare against.

Start with level 1 (whitespace, inconsistent case, missing values, exact duplicates), move to level 2 (text numbers, mixed date formats, category synonyms), then level 3 (impossible values, near-duplicates, and records that break business rules). The answer key tells you exactly which rows you should have found.

Ready-made practice

Three levels, each with an answer key

Clean a level, then compare your findings with the issues file and your output with the clean reference.

  • Ecommerce order lines dirty pack

    5,000 order lines. Level 3 adds unknown customer IDs, impossible quantities, and line totals that do not reconcile.

    Get the dirty pack →
  • Workforce employees dirty pack

    6,000 employees. Level 3 adds impossible tenure values, near-duplicates, and end dates before start dates.

    Get the dirty pack →
Compare your options

Choose a dataset for the work you want to complete

DatasetDocumented problemsDirty variantLeveled pack with answer keyReference
Ecommerce Sales & ReturnsDuplicates, inconsistent labels, date formats, and blank required valuesIncludedLevels 1–3Unchanged generated release
SaaS Subscriptions & ChurnDuplicates, inconsistent labels, date formats, and blank required valuesIncludedNot includedUnchanged generated release
Marketing Campaigns & ConversionsDuplicates, inconsistent labels, date formats, and blank required valuesIncludedNot includedUnchanged generated release
Inventory & Supply ChainDuplicates, inconsistent labels, date formats, and blank required valuesIncludedNot includedUnchanged generated release
Workforce & Employee AttritionDuplicates, inconsistent labels, date formats, and blank required valuesIncludedLevels 1–3Unchanged generated release
AI Agent OperationsDuplicates, inconsistent labels, date formats, and blank required valuesIncludedNot includedUnchanged generated release
US Flight DelaysReal missing values in a public source; no dirty variantNot includedNot includedAttributed observed source
Start here

Challenge issue checklist

Every synthetic cleaning challenge includes these issue classes. The checklist names the problems; finding the rows is up to you.

  • At least one duplicated source record in each table
  • Casing or whitespace inconsistencies in selected descriptive fields
  • Slash-delimited dates in selected date fields
  • Blank values in selected required non-key fields
  • Before-and-after row counts and totals for every correction
Practical guidance

Start with a useful result

Keep an explanation of every change

Preserve the original file, identify the problem, and state the rule used to correct it. Check whether the change affects row counts, totals, or relationships. Your final result should explain both what changed and why.

Unusual does not automatically mean incorrect

A negative amount may represent a refund. Repeated values may belong to separate transactions. Missing information may be meaningful. Use the field definitions and challenge notes before replacing values or removing rows.

Where can I find a messy dataset with an answer key?

The dirty data packs for ecommerce sales and workforce attrition include three difficulty levels. Every level ships with an issues file that lists each injected problem by record ID, column, and issue type with the original and dirty values, a summary of the counts, and the clean reference file, so you can score your own cleaning.

What data cleaning skills should a beginner practice first?

Trim whitespace, standardize text case, decide how to treat missing values, and remove exact duplicates. Those four make up level 1. Text stored as numbers, mixed date formats, and inconsistent category labels come next, followed by near-duplicates and values that cannot be true.

Can I use these files with Excel, SQL, or Python?

Yes. Every level is a plain CSV file, so you can clean it with Power Query, SQL, or pandas, and compare your output with the clean reference file in the same pack.

What is the difference between a source file and a cleaning challenge?

The source files are the published release as generated. A cleaning challenge is a copy with problems added on purpose, plus notes on what to look for.

Learn to explain the fix

Go beyond spotting an error. Practice the transformations and checks that show a correction did what you intended.

Explore data-cleaning practice