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

  • 38Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Data Cleaning Philosophy & Framework
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What does the acronym CLEAN stand for in the data cleaning framework?

Tap to flipClick to flipspace

Conceptualize the data, Locate solvable issues, Evaluate unsolvable issues, Augment the data, Note and document.

Or swipe the card

38 cards

  1. What does the acronym CLEAN stand for in the data cleaning framework?

    Conceptualize the data, Locate solvable issues, Evaluate unsolvable issues, Augment the data, Note and document.

  2. What is the data cleaning philosophy regarding data perfection?

    You are not aiming for perfect data; you aim to get data good enough to analyze, share, and iterate on.

  3. Describe the 'onion' analogy for data cleaning.

    First layer: remove obvious dirty stuff. Second layer: polish and standardize. Third layer: refine and revisit after initial analysis.

  4. What is the rule of thumb for data issues with magnitude less than 20%?

    Generally document the issue and continue with the analysis; the impact is considered low.

  5. What should you do if a column has more than 70% messed up data?

    That column is likely unusable and should be flagged or excluded from analysis.

  6. What is the overall five-step data cleaning process?

    Conceptualize the data → Locate solvable issues → Evaluate unsolvable issues → Augment the data → Note and document.

  7. What is the grain of the GameZone dataset?

    Each row represents a unique order, identified by order ID.

  8. What are the key metric and key dimensions in the GameZone dataset?

    Key metric: USD price. Key dimensions: time (purchase/ship dates), product name, purchase platform, marketing channel, account creation method, country code.

  9. If a stakeholder wants to understand overall sales trends across different regions, which columns are most important?

    Key metric = USD price; key dimension = geographic location (country code / region).

  10. Give an example record from the GameZone dataset to illustrate the story of a single row.

    User TC0 placed an order on Dec 24, 2020, shipped two days later. Item: Nintendo Switch for ~$170, purchased on website via affiliate marketing. Account creation unknown. Located in the US.

  11. What is the background of GameZone?

    Founded in 2018, sells new and refurbished gaming products worldwide. Sells mainly through online website, also mobile app, uses various marketing channels. Dataset provided has 20k records (sample).

  12. What are solvable issues in data cleaning?

    Problems that can usually be solved without stakeholder input, such as inconsistent data formats, inconsistent spellings/categorizations, some nulls, and duplicates (with context).

  13. How do you handle inconsistent date formats in the purchase timestamp?

    Use a date function to parse year, month, and day and create a correctly formatted date in a new column (e.g., 'purchase timestamp_cleaned').

  14. How do you handle inconsistent spellings in product names (e.g., '27 inches 4K gaming monitor')?

    Use an IF statement (like CASE-WHEN in SQL) to standardize the name, replacing the incorrect spelling with the correct one.

  15. How are blanks in the marketing channel and account creation method handled?

    They are imputed with 'unknown' because the dataset already has an 'unknown' category, making it a logical choice.

  16. Why is the missing country code considered unsolvable?

    There is no other source of truth or reference to infer the correct country, so it cannot be fixed without additional information.

  17. How are inconsistent values in the regional lookup table resolved?

    By looking up the correct region for each country (e.g., using external knowledge or a trusted mapping), then updating the table.

  18. How were duplicates detected in the GameZone dataset?

    Using a pivot table to count the number of user IDs per order ID, then filtering for order IDs with more than one user ID.

  19. How many duplicates were found and what was the decision?

    145 duplicates out of 20,000 records (~0.7%). They were left in pending business context, as the impact is small.

  20. What are unsolvable issues in data cleaning?

    Missing data where the value cannot be inferred, outliers/anomalous values where you're unsure if they're real, and business logic violations (e.g., ship date before purchase date).

  21. When is imputation of missing values acceptable for a data analyst?

    Only when there is a reliable source of truth, clear business logic, or if data completeness is prioritized over accuracy (rare for analysts).

  22. How should outliers be handled during data cleaning?

    Typically, identify them during analysis (e.g., visualization). Do not delete them if they represent real events; document them for transparency.

  23. What business logic violation was found in the GameZone dataset?

    Ship timestamps that occur before the purchase timestamp (around 2000 records, ~10% of data).

  24. How was the ship-before-purchase violation addressed?

    Documented and left as is because shipping date is not a key dimension. If a stakeholder asked about time to ship, further investigation would be needed.

  25. What is the purpose of augmenting data during cleaning?

    To make the dataset more flexible and robust by adding additional dimensions, time grains, or calculated metrics.

  26. Give examples of time grains that can be added from a purchase timestamp.

    Purchase week, purchase month, purchase year.

  27. How is 'time to ship' calculated?

    By subtracting the purchase timestamp from the ship timestamp, yielding the difference in days.

  28. What could cause negative values in the calculated 'time to ship'?

    The ship timestamp being before the purchase timestamp (business logic violation).

  29. How was the region added to the orders table?

    By joining the orders table with the cleaned regional lookup table using the country code.

  30. What problem may occur when Excel processes blank dates during augmentation?

    Excel interprets blank cells as a date (e.g., 1900), creating nonsensical values. These need to be removed or handled.

  31. What other information could potentially be added if a customer table were available?

    Customer demographics like street address, state, or other sign-up information.

  32. Why should you copy original data into a new tab before cleaning?

    To preserve the original data as a fallback and maintain a paper trail for stakeholders.

  33. When cleaning, how should you add corrected columns?

    Add a new column to the right with the same name plus '_cleaned' (e.g., 'purchase timestamp_cleaned') instead of replacing the original directly.

  34. What is the role of the issues log?

    To document all data issues found, their magnitude, whether they are solvable, and the resolution taken. It serves as a paper trail for transparency.

  35. What should be included in an issues log entry?

    Issue description, magnitude (count or percent), solvability (yes/no), resolution, and any notes for stakeholders.

  36. When should you update the issues log with final decisions?

    After completing the augmentation step, go back and finalize the issues log with resolution details and percent magnitude.

  37. What is the benefit of using formulas (e.g., IF statements) for cleaning?

    They are repeatable, auditable, and reduce manual error compared to manual find-and-replace.

  38. Why is it important to document unsolvable issues even if you don't fix them?

    Transparency about data limitations builds trust and informs analysis interpretation.

Card 1 of 38
Card 1 of 38

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent