Cleaning data
Finding and fixing mistakes in data, such as typos, spelling variations, duplicate rows, missing values and impossible values, so the data is accurate and ready to use.
Understanding Cleaning data in QCE Digital Solutions Unit 3
What it does: Checking whether an ID has already been seen stops the same record being added twice, which removes duplicates. Trimming spaces and using one letter case makes variations such as ' brisbane' and 'BRISBANE' match, which cleans the data. Cleaning corrects or removes faulty data. It does not throw everything away. Year levels at a school only go up to 12, so 27 is outside the valid range. It is probably a typo for 7 or 12. An empty cell where data should be is a missing value. You then decide whether to fill it, flag it or remove the row.
Common mistakes: The average should only use marks that exist. The condition must be mark ≠ blank. As written, the loop adds only the missing values and skips the real marks. The loop must go through the data rows to find duplicates. Looping over seen, which starts empty, checks nothing. It should be for each row in data.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 194–250) and word search (Modules 194–337).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
data cleaningFill in the Blanks
Spot the Error
Student with a class code? Join your class →