Data Preprocessing

What are the 5 C's of data?

Completeness, consistency, correctness, currency, and conformity are five useful data quality checks for machine learning. Here is how to check each one.

On this page
  1. Completeness
  2. Consistency
  3. Correctness
  4. Currency
  5. Conformity
  6. Why these checks matter for machine learning
  7. Running the checks

There is no single standard list called the “5 C’s of data,” so the answer depends on the source. This article uses five checks: completeness, consistency, correctness, currency, and conformity. They line up with common data quality dimensions, such as missing values, conflicting formats, wrong values, outdated values, and values that break expected rules. Other writers use different words for similar checks.

Completeness

Completeness asks whether the values you need are present. Count how many values are missing in each column, and check whether any rows are mostly empty. In pandas, df.isna().sum() gives the count of missing values per column, and df.isna().mean() gives the share.

A column that is mostly blank may be of little use, unless there is a good reason to fill its gaps.

Consistency

Consistency asks whether the same thing is recorded the same way everywhere. “USA,” “U.S.A.,” and “United States” all name one country, but a model sees three different strings. Other examples include dates written in several formats, the same measurement recorded in meters in one table and feet in another, and conflicting values for one customer across two sources.

A quick check is to count the distinct values in a category column with df["country"].value_counts() and look for spelling variants.

Correctness

Correctness asks whether the values are accurate. A human age of 430 is impossible, and a product price that is a hundred times the usual price may be a typing error. Check values against known ranges, against related fields, or against a trusted source when one is available.

Some errors look perfectly plausible, such as a typo that changes 45 into 54. Simple rules will miss those, so reading a sample of rows by eye is still worth doing.

Currency

Currency asks whether the data is up to date for the question you are asking. Last year’s prices may not describe today’s market, and sensor readings from an old device setup may not match a new one. Old data can still be useful, but a model should be trained on data from a period that resembles the period where it will be used.

Conformity

Conformity asks whether values follow the rules you expect: the right type, format, and range. A date column should contain dates, a percentage should fall between 0 and 100, and a code field should match the pattern it is supposed to follow. Values that break these rules often point to a problem upstream, in how the data was collected or exported.

Why these checks matter for machine learning

A model learns patterns from the data it sees. Missing, inconsistent, wrong, outdated, or malformed values become part of what it learns, and the model will still produce output that looks normal. The result can be a model that seems to work until it meets real cases.

Checking these five areas before training helps catch problems early, when they are cheaper to fix.

Running the checks

A simple routine works for most datasets. Profile each column and count its missing values. Check the categories and their spellings. Look at the minimum, maximum, and typical values for numbers. Then read a sample of rows by eye. The checks are quick with pandas and show which problems need fixing.

For ways to fix what these checks find, look at the cleaning and transforming tasks. The question what are the 5 major steps of data preprocessing? lays out those tasks.

The complete guide to data preprocessing

Why Data Preprocessing Is Needed in Machine Learning
Read the guide

Keep exploring

Guides from other topics

All topics →