🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Science & Analytics › Data Cleaning and Preparation for Analysis › Lesson 9
TEC-DATA85-05 · Lesson 9 · 16 clock hours · practice

End-to-End Cleaning Project: Raw to Analysis-Ready

Objective. Students will independently execute the full cleaning pipeline—profile, impute, standardize, deduplicate, detect outliers, log transformations, version-control—on a new messy dataset and present a before/after quality report and reproducible code package.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

End-to-End Cleaning Project: Raw to Analysis-Ready

You have spent this course learning each cleaning skill in isolation. This lesson asks you to chain every skill into one continuous, professional-grade pipeline—on a dataset you have never seen before, with no guided notebook. That is exactly what you will face on the job and in your certification exams.

What an End-to-End Pipeline Looks Like

A complete cleaning pipeline moves through these stages in order:

1. Profile — understand shape, data types, missing-value rates, and basic distributions before touching anything.

2. Standardize types and formats — parse dates, fix numeric columns stored as text, enforce consistent string casing and units.

3. Impute or remove missing values — choose a strategy (mean/median/mode imputation, forward-fill, or row removal) justified by the data and the analysis goal.

4. Deduplicate — identify and remove exact and near-duplicate rows using key columns or fuzzy matching.

5. Detect and handle outliers — use IQR fences, z-scores, or domain knowledge; decide to cap, remove, or flag rather than silently delete.

6. Apply transformations — log-transform skewed numeric columns when appropriate; encode categoricals if required by downstream analysis.

7. Validate — run post-cleaning assertions (no nulls in required columns, row count within expected range, value ranges in bounds).

8. Version-control — commit at each major stage so every decision is traceable.

Skipping or reordering steps creates problems. For example, imputing missing values before deduplication can propagate imputed values into duplicate rows that should be removed.

Profiling First: Safety Before Changes

Just as a technician locks out equipment before working on it, a data analyst documents the original state of data before any modification. Always save and commit the raw file unchanged. Your first notebook cell should read the CSV, print `.shape`, `.dtypes`, `.describe()`, and a missing-value summary. This is your "before" snapshot. Never overwrite the raw source file—work on a copy.

This discipline is not optional. If a cleaning step introduces a bug, you must be able to diff the current state against the original. Without version control, that is impossible.

Documenting Every Decision

Each significant choice needs a written justification in your code comments or a companion markdown cell:

A peer or auditor must be able to reproduce your reasoning, not just your output. Certifications such as CompTIA Data+ and the Google Data Analytics Professional Certificate emphasize data integrity and sound decision-making as core competencies. Undocumented changes fail that standard.

Building a Reproducible Code Package

Your Git repository must allow a stranger to clone it, run one command, and reproduce your clean output exactly. Practical requirements:

Crafting the Before/After Quality Report

Your slide deck should tell a data story, not just list numbers. Open with one slide showing the raw dataset's worst problems in plain language. Follow with slides that show, for each major issue type, a before metric and an after metric:

| Metric | Before | After |

|---|---|---|

| Missing values (%) | ? | ? |

| Duplicate rows | ? | ? |

| Type errors | ? | ? |

| Outlier flags | ? | ? |

Close with a slide that describes limitations—problems you could not fully resolve and why. Honesty about limitations is a professional and ethical obligation; misrepresenting data quality is a form of data misuse.

Presenting to a Technical Panel

Your 10-minute presentation must cover the pipeline logic and the quality results. Panels commonly ask:

Prepare to answer with code evidence—open your notebook if needed. Vague answers do not pass a technical review.

Passing Criteria

To pass, you must score at least 75% on the rubric AND your instructor must be able to clone your repository and reproduce your clean output without errors. Both conditions must be met. A perfect slide deck with a broken repository is a failing submission.

Connecting to Your Certifications

This project directly exercises skills tested in CompTIA Data+ (data acquisition, data manipulation, and data quality), Google Data Analytics (process and analyze phases), Microsoft PL-300 (data transformation in Power Query), and IBM Data Science Professional (data wrangling and exploratory analysis). Treat this project as a portfolio piece: clean code, sound decisions, and a clear report are exactly what hiring managers expect to see.

Key terms8

Data profilingThe process of examining a dataset to summarize its structure, content, and quality before any cleaning begins, including counts, data types, missing-value rates, and basic statistics.
ReproducibilityThe property of a data pipeline that allows any person with the code and raw data to re-run the pipeline and obtain the same clean output, byte for byte.
ImputationFilling in missing values with a substitute such as the column mean, median, mode, or a value derived from related rows, chosen based on the data's distribution and the analysis goal.
DeduplicationIdentifying and removing rows that represent the same real-world record, either as exact matches across all columns or near-matches on a defined key.
Outlier cappingReplacing extreme values with a boundary value (such as the 1st or 99th percentile) rather than deleting the row, preserving the observation while limiting its influence on analysis.
Log transformationApplying the logarithm function to a numeric column to reduce right skew and compress the range, making distributions more symmetric for statistical analysis or modeling.
Version controlA system, typically Git, that records every change to code and data files with a timestamp and message, allowing a team to trace decisions, revert mistakes, and collaborate without overwriting each other's work.
Post-cleaning validationAutomated assertions run after cleaning steps to confirm that the output meets expected conditions—no nulls in required columns, row counts within bounds, values within allowed ranges.
In class: Students receive a previously unseen 30,000-row dataset (city-provided open data with seeded and natural quality problems); over four in-class work sessions they apply all skills from lessons 1–8 with no scaffolded notebook, relying on their own prior scripts and documentation. · Students prepare a before/after quality summary slide deck (maximum 10 slides) that shows key statistics (missing-value rates, duplicate counts, type error counts, outlier counts) before and after cleaning, with a narrative of every major decision. · Students deliver a 10-minute live presentation of their pipeline and quality report to a panel of the instructor and one peer reviewer, answering at least two technical questions about their cleaning choices; the Git repository is submitted simultaneously.
Materials: New open-data CSV, student laptops with full Python/R/SQL environment, Git/GitHub, slide-presentation software, presentation rubric
Check: Presentation rubric (technical accuracy, decision justification, communication clarity) scored by instructor and peer reviewer; reproducibility confirmed by instructor cloning and running the repository; pass requires 75 % on rubric AND successful reproduction of clean output.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Data manipulation and data quality (CompTIA Data+)
1. A student begins cleaning a 30,000-row dataset by imputing missing zip codes before removing duplicate rows. What is the most likely problem with this order?
Data wrangling and reproducibility (IBM Data Science Professional)
2. Which practice BEST ensures that a peer can reproduce your clean output from your Git repository without asking you any questions?
Data quality and decision justification (CompTIA Data+)
3. In a before/after quality report, a student reports that missing-value rate dropped from 18% to 0%. A reviewer asks how nulls in a required address column were resolved. The student says they were imputed with the string 'Unknown'. What is the BEST evaluation of this decision?
Data transformation (IBM Data Science Professional / CompTIA Data+)
4. A student finds that a numeric column for 'annual income' is heavily right-skewed, with a few very large values stretching the distribution. Which transformation is MOST commonly applied to reduce this skew before statistical analysis?
Version control and reproducibility (Google Data Analytics / IBM Data Science Professional)
5. A student commits changes to their repository with the message 'updates' at every step. Why is this a professional problem?
Data quality validation (CompTIA Data+)
6. During a 10-minute panel presentation, a reviewer asks: 'How did you confirm there were no remaining duplicates after your deduplication step?' Which response BEST demonstrates technical competence?
Data transformation in Power Query (Microsoft PL-300)
7. In Power BI's Power Query editor, a data analyst wants to standardize a text column that contains city names entered inconsistently (e.g., 'new york', 'New York', 'NEW YORK'). Which transformation MOST directly addresses this issue?
Data quality and integrity (CompTIA Data+ / Google Data Analytics)
8. A student's final clean output contains 27,400 rows. The raw dataset had 30,000 rows. The student's report does not explain why 2,600 rows were removed. According to professional data-cleaning standards, this is:
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.