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

  • 23Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Data Cleaning Framework

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

23 questions

  1. 1

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

    1. A

      Clean, Locate, Evaluate, Adjust, Notify

    2. B

      Categorize, List, Examine, Add, Note

    3. C

      Check, Label, Eliminate, Augment, Narrate

    4. D

      Conceptualize, Locate solvable, Evaluate unsolvable, Augment, Note and document

    Correct answer
    D

    Conceptualize, Locate solvable, Evaluate unsolvable, Augment, Note and document

    Explanation

    The CLEAN framework stands for Conceptualize the data, Locate solvable issues, Evaluate unsolvable issues, Augment the data, and Note and document.

  2. 2

    What is the data cleaning philosophy according to the video?

    1. A

      Data should be good enough to analyze, share, and iterate on

    2. B

      Data should be perfectly clean before any analysis begins

    3. C

      Data cleaning should focus only on missing values

    4. D

      Data cleaning is a one-time process at the start of a project

    Correct answer
    A

    Data should be good enough to analyze, share, and iterate on

    Explanation

    The video states that you're not aiming for perfect data, but to get to a place where your data is good enough to analyze, share, and iterate on.

  3. 3

    In the onion analogy for data cleaning, what does the first layer represent?

    1. A

      Polishing and standardizing the data

    2. B

      Adding new dimensions to the dataset

    3. C

      Refining and revisiting the underlying data after initial analysis

    4. D

      Getting rid of obvious dirty data

    Correct answer
    D

    Getting rid of obvious dirty data

    Explanation

    The first layer is just getting rid of the obvious dirty stuff. The second layer is polishing and standardizing, and the third layer is refining and revisiting after initial analysis.

  4. 4

    In the GameZone dataset, what does each row represent?

    1. A

      A unique customer

    2. B

      A unique product

    3. C

      A unique transaction line item

    4. D

      A unique order

    Correct answer
    D

    A unique order

    Explanation

    Each row is a unique order, identified by the order ID.

  5. 5

    What is the key metric identified in the GameZone dataset?

    1. A

      USD price

    2. B

      Customer age

    3. C

      Quantity of products

    4. D

      Marketing spend

    Correct answer
    A

    USD price

    Explanation

    The key metric is the US dollar price.

  6. 6

    Which of the following is NOT listed as a key dimension in the GameZone dataset?

    1. A

      Purchase platform

    2. B

      Time (purchase and ship timestamps)

    3. C

      Product name

    4. D

      Customer email address

    Correct answer
    D

    Customer email address

    Explanation

    The key dimensions mentioned are time, product name, purchase platform, marketing channel, account creation method, and country code. Customer email address is not listed.

  7. 7

    What are the three main things to identify when conceptualizing data?

    1. A

      Grain, key metrics, and key dimensions

    2. B

      Business questions, stakeholder needs, and data sources

    3. C

      Data types, missing values, and duplicates

    4. D

      Column names, row count, and file format

    Correct answer
    A

    Grain, key metrics, and key dimensions

    Explanation

    To understand and conceptualize the data, you first want to identify the grain (what each row represents), the key metrics, and the key dimensions.

  8. 8

    Which of the following is considered a solvable issue in data cleaning?

    1. A

      Inconsistent date formats

    2. B

      Business logic violations with no context

    3. C

      Missing values with no way to infer them

    4. D

      Outliers that may be real events

    Correct answer
    A

    Inconsistent date formats

    Explanation

    Inconsistent date formats are solvable because you have the data and can reformat it. The other options are typically unsolvable without additional context or source of truth.

  9. 9

    How were the missing values in the 'marketing channel' column handled?

    1. A

      They were filled with the most common marketing channel

    2. B

      The corresponding rows were deleted

    3. C

      They were imputed with the value 'unknown'

    4. D

      They were left as blank because they were unsolvable

    Correct answer
    C

    They were imputed with the value 'unknown'

    Explanation

    Since the column already had a category called 'unknown', blanks were replaced with 'unknown' because it was a solvable issue on the data layer.

  10. 10

    Why were duplicate orders (145 out of 20,000) left in the dataset?

    1. A

      The duplicates were not identified until after the analysis was complete

    2. B

      They were exact duplicates and removing them would bias the analysis

    3. C

      The duplicate count was small (0.725%) and required business context before deletion

    4. D

      Duplicates are always kept in data cleaning to preserve data integrity

    Correct answer
    C

    The duplicate count was small (0.725%) and required business context before deletion

    Explanation

    Because the impact was small (145 records out of 20,000) and the analyst wanted to confirm with business context before deleting, the duplicates were documented and left in the dataset.

  11. 11

    Which of the following is an example of an unsolvable issue in the GameZone dataset?

    1. A

      Missing purchase timestamp (only 1 record)

    2. B

      The presence of the category 'unknown' in marketing channel

    3. C

      Inconsistent product name spellings

    4. D

      Nonsensical values in the regional lookup table

    Correct answer
    A

    Missing purchase timestamp (only 1 record)

    Explanation

    Missing purchase timestamp is unsolvable because the analyst has no way to infer the correct date from the available data. Inconsistent spellings and nonsensical values in the lookup table are solvable.

  12. 12

    What was the magnitude of records where the ship timestamp was before the purchase timestamp?

    1. A

      10% (2000 records)

    2. B

      5% (1000 records)

    3. C

      20% (4000 records)

    4. D

      1% (200 records)

    Correct answer
    A

    10% (2000 records)

    Explanation

    The video mentions that about 2000 records out of 20,000 (10%) had the ship timestamp before the purchase timestamp.

  13. 13

    According to the video, when is it appropriate to impute missing data?

    1. A

      Always, because complete datasets are required for analysis

    2. B

      Whenever a column has more than 20% missing values

    3. C

      Never, because imputation always introduces bias

    4. D

      Only when you have a reliable source of truth or clear business logic

    Correct answer
    D

    Only when you have a reliable source of truth or clear business logic

    Explanation

    Imputation should only be done if you have a reliable other source of truth, clear business logic that gives confidence, or if you care more about completeness than accuracy. Data analysts rarely employ imputation.

  14. 14

    What is a recommended practice when dealing with unsolvable issues in a portfolio project?

    1. A

      Document the issues and surface them in the project write-up

    2. B

      Impute values using the average or median

    3. C

      Ignore them completely and focus only on clean data

    4. D

      Delete the records to avoid skewing the analysis

    Correct answer
    A

    Document the issues and surface them in the project write-up

    Explanation

    For unsolvable issues, the main point is to document them and note the magnitude, making it transparent in the project write-up.

  15. 15

    What does 'augmenting the data' involve?

    1. A

      Creating a separate issues log file

    2. B

      Adding new columns derived from existing data, such as time grains or calculated metrics

    3. C

      Replacing original columns with cleaned versions

    4. D

      Removing all missing values from the dataset

    Correct answer
    B

    Adding new columns derived from existing data, such as time grains or calculated metrics

    Explanation

    Augmentation involves adding new time grains (weeks, months, years), calculating metrics like time to ship, and bringing in additional dimensions from lookup tables.

  16. 16

    What should be included in the issues log according to the video?

    1. A

      The SQL or Excel formulas used to clean each column

    2. B

      Issues, resolution decisions, and percent magnitude impacted

    3. C

      Only the issues that were solvable

    4. D

      A list of all column names and data types

    Correct answer
    B

    Issues, resolution decisions, and percent magnitude impacted

    Explanation

    The issues log should include notes about the resolution, final decisions for each column, and the percent magnitude impacted for the data issues found.

  17. 17

    What is the rule of thumb for when to leave unsolvable issues as is?

    1. A

      If the magnitude is more than 70%

    2. B

      Always leave unsolvable issues regardless of magnitude

    3. C

      If the magnitude is less than 50%

    4. D

      If the magnitude is less than 20%

    Correct answer
    D

    If the magnitude is less than 20%

    Explanation

    The video states that if the magnitude is less than 20%, you can document it and leave it as is. If a column has more than 70% messed up data, it is probably unusable.

  18. 18

    Which of the following was NOT a step taken to augment the GameZone dataset?

    1. A

      Bringing in region from a lookup table

    2. B

      Merging customer demographic data from a user table

    3. C

      Calculating time to ship in days

    4. D

      Adding purchase year, month, and week columns

    Correct answer
    B

    Merging customer demographic data from a user table

    Explanation

    The video mentions adding time grains, calculating time to ship, and bringing in region. Merging customer demographic data was mentioned as 'if I had a user table', but it was not actually done because it wasn't available.

  19. 19

    What is the final step in the CLEAN framework?

    1. A

      Note and document

    2. B

      Locate solvable issues

    3. C

      Augment the data

    4. D

      Evaluate unsolvable issues

    Correct answer
    A

    Note and document

    Explanation

    The final step is 'Note and document', which involves finalizing the issues log with resolution notes and percent magnitudes.

  20. 20

    According to the video, when should you create a new tab with replicated original data during cleaning?

    1. A

      At the very end of the cleaning process

    2. B

      At the start, to have a paper trail and prevent overwriting

    3. C

      Only when working with dates

    4. D

      Only if duplicates are found

    Correct answer
    B

    At the start, to have a paper trail and prevent overwriting

    Explanation

    The video recommends creating a new tab replicating the original data before cleaning so that you always have the original to go back to for a paper trail.

  21. 21

    Why did the analyst decide not to delete the 145 duplicate records?

    1. A

      Because they wanted to get business context first

    2. B

      Because deleting them would take too long

    3. C

      Because duplicates are always kept in data analysis

    4. D

      Because the duplicates were not exact

    Correct answer
    A

    Because they wanted to get business context first

    Explanation

    The analyst decided to leave duplicates in and document them because before deleting, they wanted full business context to clarify that these genuinely are records that can be deleted.

  22. 22

    What was the issue with the regional lookup table and why was it solvable?

    1. A

      It was completely missing and could be recreated from the orders table

    2. B

      It had too many blank rows but could be imputed with 'unknown'

    3. C

      It had inconsistent values but could be fixed by looking up the correct region for each country

    4. D

      It contained duplicates that were removed using pivot tables

    Correct answer
    C

    It had inconsistent values but could be fixed by looking up the correct region for each country

    Explanation

    The regional lookup table had nonsensical values, but since there is a source of truth for what region a country belongs to, it was solvable by looking up the correct values.

  23. 23

    In the context of data cleaning, what is a 'business logic violation' example from the video?

    1. A

      Having a ship timestamp before the purchase timestamp

    2. B

      Having duplicate order IDs

    3. C

      Having missing values in marketing channel

    4. D

      Having inconsistent date formats

    Correct answer
    A

    Having a ship timestamp before the purchase timestamp

    Explanation

    A business logic violation is when relationships between columns don't make sense. The example given is a ship timestamp that occurs before the purchase timestamp.

Question 1 of 23
Question 1 of 23

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent