WGU D599 Task 1: Data Profiling and Cleaning | Complete Revised Report,
Python Code & Data Analysis | 2026/2027 Updated with complete solutions
Actual Q&A – A+ Guarantee Format | Includes Drawings/Diagrams Where Needed – Profiling Workflow, Missing Data
Types MCAR MAR MNAR, Boxplot Outlier Detection IQR Rule, Cleaning Decision Tree | Python Code df.info isnull
sum duplicated fillna dropna drop_duplicates to_numeric to_datetime
1. For D599 Task 1, what is data profiling? Refer to the data profiling and cleaning
workflow diagram below.
Figure 1: WORKFLOW diagram – refer to this drawing for question 1
A) Data profiling examines data structure, content, quality: data types, missing
values, duplicates, outliers, distributions, cardinality, before cleaning, as shown in
workflow: Collection -> Profiling -> Quality Assessment -> Cleaning ->
Transformation -> Clean Dataset
B) No data profiling needed
C) Data profiling same as cleaning only
D) Data profiling deletes data
Answer: A
Rationale: Option A correct profiling definition and workflow as diagram:
Collection Raw CSV, Profiling examine structure types missing, Quality
Assessment completeness accuracy consistency, Cleaning handle missing
outliers duplicates, Transformation type conversion normalization, Clean
,Dataset Ready. Option B wrong profiling essential first step. Option C wrong
profiling examines, cleaning fixes. Option D wrong profiling examines, not
deletes.
2. What are types of missing data mechanisms? Refer to types of missing data
diagram below.
Figure 2: MISSING diagram – refer to this drawing for question 2
A) MCAR Missing Completely At Random missingness unrelated to observed and
missing data purely random e.g., random printer error, MAR Missing At Random
depends on observed data not missing itself e.g., income missing more for
younger, predictable from age, MNAR Missing Not At Random depends on
missing value itself e.g., high income less likely report, as shown in diagram with
definitions examples handling strategies
B) Only one type of missing data exists
C) Missing data same as no missing
D) Missing data cannot be categorized
Answer: A
Rationale: Option A correct MCAR MAR MNAR definitions examples handling
as diagram shows. Option B wrong three mechanisms exist. Option C wrong
missing vs no missing opposite. Option D wrong can be categorized into MCAR
MAR MNAR.
,3. What is outlier detection using boxplot? Refer to boxplot outlier detection
diagram below.
Figure 3: BOXPLOT diagram – refer to this drawing for question 3
A) Boxplot outlier detection: IQR=Q3-Q1 measures middle 50% spread, Lower
Whisker=Q1-1.5*IQR, Upper Whisker=Q3+1.5*IQR, values below Lower or above
Upper are outliers, as shown: Q1 42.5 Q3 55.1 IQR 12.6 Lower 23.6 Upper 73.9
Outliers <23.6 or >73.9 points -5 -8 95 100
B) No outlier detection needed
C) Outliers same as normal values
D) Boxplot cannot detect outliers
Answer: A
Rationale: Option A correct boxplot outlier rule as diagram: IQR Q3-Q1,
whiskers Q1-1.5*IQR Q3+1.5*IQR, outliers beyond whiskers red points. Option
B wrong outlier detection essential in profiling. Option C wrong outliers
anomalies beyond normal range. Option D wrong boxplot standard tool for
outlier detection.
, 4. What is data cleaning decision tree flowchart? Refer to decision tree diagram
below.
Figure 4: DECISION diagram – refer to this drawing for question 4
A) Data cleaning decision tree: Start -> Check Missing Values? Yes -> dropna or
fillna, No -> Check Duplicates? Yes -> drop_duplicates, No -> Check Outliers?
Yes -> cap or remove, No -> Check Data Types? Yes -> astype or to_datetime, No
-> End Clean Data, as shown flowchart with diamond decisions and action boxes
B) No cleaning decision tree needed
C) Cleaning decision tree same as no cleaning
D) Cleaning decision tree deletes data only
Answer: A
Rationale: Option A correct decision tree flow as diagram shows sequential
checks with Yes actions dropna fillna drop_duplicates cap remove astype
to_datetime. Option B wrong decision tree guides systematic cleaning. Option
C wrong decision tree structures cleaning vs no cleaning unstructured. Option
D wrong cleaning includes fixing not only deleting.
5. Explain Python code: df.info(). What does it show in data profiling?
A) df.info() shows DataFrame structure: number of rows, columns, column names,
non-null counts, data types (int64, float64, object, datetime), memory usage,
essential for profiling to identify missing and type issues
B) No info shown
Python Code & Data Analysis | 2026/2027 Updated with complete solutions
Actual Q&A – A+ Guarantee Format | Includes Drawings/Diagrams Where Needed – Profiling Workflow, Missing Data
Types MCAR MAR MNAR, Boxplot Outlier Detection IQR Rule, Cleaning Decision Tree | Python Code df.info isnull
sum duplicated fillna dropna drop_duplicates to_numeric to_datetime
1. For D599 Task 1, what is data profiling? Refer to the data profiling and cleaning
workflow diagram below.
Figure 1: WORKFLOW diagram – refer to this drawing for question 1
A) Data profiling examines data structure, content, quality: data types, missing
values, duplicates, outliers, distributions, cardinality, before cleaning, as shown in
workflow: Collection -> Profiling -> Quality Assessment -> Cleaning ->
Transformation -> Clean Dataset
B) No data profiling needed
C) Data profiling same as cleaning only
D) Data profiling deletes data
Answer: A
Rationale: Option A correct profiling definition and workflow as diagram:
Collection Raw CSV, Profiling examine structure types missing, Quality
Assessment completeness accuracy consistency, Cleaning handle missing
outliers duplicates, Transformation type conversion normalization, Clean
,Dataset Ready. Option B wrong profiling essential first step. Option C wrong
profiling examines, cleaning fixes. Option D wrong profiling examines, not
deletes.
2. What are types of missing data mechanisms? Refer to types of missing data
diagram below.
Figure 2: MISSING diagram – refer to this drawing for question 2
A) MCAR Missing Completely At Random missingness unrelated to observed and
missing data purely random e.g., random printer error, MAR Missing At Random
depends on observed data not missing itself e.g., income missing more for
younger, predictable from age, MNAR Missing Not At Random depends on
missing value itself e.g., high income less likely report, as shown in diagram with
definitions examples handling strategies
B) Only one type of missing data exists
C) Missing data same as no missing
D) Missing data cannot be categorized
Answer: A
Rationale: Option A correct MCAR MAR MNAR definitions examples handling
as diagram shows. Option B wrong three mechanisms exist. Option C wrong
missing vs no missing opposite. Option D wrong can be categorized into MCAR
MAR MNAR.
,3. What is outlier detection using boxplot? Refer to boxplot outlier detection
diagram below.
Figure 3: BOXPLOT diagram – refer to this drawing for question 3
A) Boxplot outlier detection: IQR=Q3-Q1 measures middle 50% spread, Lower
Whisker=Q1-1.5*IQR, Upper Whisker=Q3+1.5*IQR, values below Lower or above
Upper are outliers, as shown: Q1 42.5 Q3 55.1 IQR 12.6 Lower 23.6 Upper 73.9
Outliers <23.6 or >73.9 points -5 -8 95 100
B) No outlier detection needed
C) Outliers same as normal values
D) Boxplot cannot detect outliers
Answer: A
Rationale: Option A correct boxplot outlier rule as diagram: IQR Q3-Q1,
whiskers Q1-1.5*IQR Q3+1.5*IQR, outliers beyond whiskers red points. Option
B wrong outlier detection essential in profiling. Option C wrong outliers
anomalies beyond normal range. Option D wrong boxplot standard tool for
outlier detection.
, 4. What is data cleaning decision tree flowchart? Refer to decision tree diagram
below.
Figure 4: DECISION diagram – refer to this drawing for question 4
A) Data cleaning decision tree: Start -> Check Missing Values? Yes -> dropna or
fillna, No -> Check Duplicates? Yes -> drop_duplicates, No -> Check Outliers?
Yes -> cap or remove, No -> Check Data Types? Yes -> astype or to_datetime, No
-> End Clean Data, as shown flowchart with diamond decisions and action boxes
B) No cleaning decision tree needed
C) Cleaning decision tree same as no cleaning
D) Cleaning decision tree deletes data only
Answer: A
Rationale: Option A correct decision tree flow as diagram shows sequential
checks with Yes actions dropna fillna drop_duplicates cap remove astype
to_datetime. Option B wrong decision tree guides systematic cleaning. Option
C wrong decision tree structures cleaning vs no cleaning unstructured. Option
D wrong cleaning includes fixing not only deleting.
5. Explain Python code: df.info(). What does it show in data profiling?
A) df.info() shows DataFrame structure: number of rows, columns, column names,
non-null counts, data types (int64, float64, object, datetime), memory usage,
essential for profiling to identify missing and type issues
B) No info shown