1. Home
  2. Explore
  3. Computer Science
  4. Data Cleaning Framework

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Data Cleaning Framework

Speaker 1Speaker 2

Data Cleaning Framework

4:27
0:00-4:27
  1. Maria

    Alright, Corey, we're tackling data cleaning today. And Christine from the Portfolio Playbook series has a fantastic framework for it. She calls it CLEAN.

  2. Corey

    CLEAN? I'm guessing that's an acronym. Let's hear it.

  3. Maria

    Exactly. It stands for Conceptualize, Locate solvable issues, Evaluate unsolvable issues, Augment, and Note. And the core philosophy? You're not aiming for perfect data. You just need it good enough to analyze, share, and iterate on.

  4. Corey

    I like that. So it's like peeling an onion – first layer is obvious dirt, then polish, then refine after initial analysis. Let's start with Conceptualize. What does that mean in practice?

  5. Maria

    Before you touch the data, you step back and ask: what am I looking at? You need to identify the grain – what each row represents – key metrics, and key dimensions. For Christine's example, a sample company called GameZone, each row is a unique order. The key metric is the price in USD, and key dimensions include time, product, platform, marketing channel, and country.

  6. Corey

    So you're basically understanding the story a single record tells. She gave an example: user TC0 placed an order on December 24, 2020 for a Nintendo Switch bought on the website via affiliate marketing, shipped two days later, and the user is in the US. That sets the stage for what you'll clean and why.

  7. Maria

    Right. And if you have a stakeholder question, say about sales trends across regions, you know your key metric is price and your key dimension is geography. That helps prioritize. Now step two: Locate solvable issues. These are problems you can fix without needing extra business context – like inconsistent date formats, spelling errors, or nulls where you know the correct value.

  8. Corey

    So you eyeball the data, use filters to check distinct values, and start an issues log. Christine found dates in weird formats, $0 transactions, blanks in marketing channel and account creation method, and a regional lookup table with nonsensical values. She also noticed the blanks in marketing channel and account creation method had the same pattern.

  9. Maria

    Exactly. She documented each issue and its magnitude. Then she went through and fixed what she could: reformatted dates, normalized product name spellings using an IF statement, imputed blanks in marketing channel and account creation method as 'unknown' because that category already existed, and corrected the regional lookup table. She also checked for duplicates using a pivot table.

  10. Corey

    And she found some duplicates – same order ID with different user IDs. But since they were only 145 out of 20,000 records, she left them in and documented them. That's a good rule: if the impact is small and you lack business context, don't delete yet.

  11. Maria

    Now step three: Evaluate unsolvable issues. These are missing data you can't infer, outliers, or business logic violations – like a ship date before the purchase date. Christine had missing purchase timestamps, $0 price transactions, and missing country codes. She couldn't impute those without another source of truth.

  12. Corey

    She also checked for outliers by sorting high and low, but she says you usually spot those during analysis. And she did a business logic check: ship timestamp should be after purchase timestamp. She found about 2,000 records where it wasn't – that's 10%! But since shipping date isn't a key dimension, she documented it and moved on. Her point: for portfolio projects, transparency is key – don't delete unless you're sure.

  13. Maria

    And she adds a note about imputation. Data analysts rarely impute because it can introduce bias. You only do it if you have a reliable source of truth, clear business logic, or you really value completeness over accuracy. For unsolvable issues, document, note the magnitude, and mention who you'd need to talk to on the job.

  14. Corey

    Then step four: Augment. This is about making your dataset more robust. Christine added time grains like week, month, year from the purchase timestamp, calculated time to ship, and brought in region from the cleaned lookup table. She also cleaned up the new columns – Excel had turned blanks into weird date values, so she removed those.

  15. Maria

    Finally, step five: Note and document. You finalize your issues log with resolutions, decisions, and percent magnitude impacted. This paper trail shows hiring managers your thoughtfulness. Christine's issues had low magnitude except for the ship timestamp issue, but the process is the same even if it were worse. If a column is over 70% messed up, it's probably unusable.

  16. Corey

    So the full CLEAN process: Conceptualize the data, Locate solvable issues and fix them, Evaluate unsolvable issues and document, Augment with new variables, and Note everything. She wraps up by saying this leads into exploratory analysis. Great framework – makes data cleaning feel manageable.

  17. Maria

    It really does. And remember, the goal isn't perfection. As Christine says, it's like peeling an onion. You'll iterate. For anyone following the series, she's got the GameZone dataset available. Next episode is exploratory analysis, so we'll have to tune in.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent