
Data Cleaning and Preparation Flashcard
Flashcard
•
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is NOT a part of data cleaning? Handling missing values, Removing duplicates, Correcting inconsistent data
Back
Applying machine learning algorithms
2.
FLASHCARD QUESTION
Front
What is the main disadvantage of dropping rows with missing values?
Back
It reduces the size of the dataset, potentially leading to data loss
3.
FLASHCARD QUESTION
Front
Which of the following methods is best suited for handling categorical variables with many unique values? Label encoding, One-hot encoding, Frequency encoding, Min-max normalization
Back
Frequency encoding
4.
FLASHCARD QUESTION
Front
Why is feature scaling important in data preparation?
Back
It ensures that numerical features contribute equally to distance-based models
5.
FLASHCARD QUESTION
Front
If a dataset has a column with typos such as ["Male", "male", "M", "FEMALE", "female", "F"], which data cleaning technique should be applied?
Back
Convert all values to lowercase and map variations to standard categories
6.
FLASHCARD QUESTION
Front
Given the following DataFrame, how do you replace all missing values in the "Age" column with the median value? Options: df['Age'].fillna(df['Age'].mean(), inplace=True), df['Age'].fillna(df['Age'].median(), inplace=True), df['Age'].replace(np.nan, 0, inplace=True), df.dropna(subset=['Age'], inplace=True)
Back
df['Age'].fillna(df['Age'].median(), inplace=True)
7.
FLASHCARD QUESTION
Front
How can you remove duplicate rows from a DataFrame while keeping only the last occurrence?
Back
df.drop_duplicates(keep='last', inplace=True)
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
8 questions
Tips & Sales Tax
Flashcard
•
7th Grade
8 questions
Fall 2024 - 4.1 Flashcard - Period 4
Flashcard
•
12th Grade
10 questions
Promotion and Marketing Strategies Flashcard
Flashcard
•
9th Grade
10 questions
Types of Energy
Flashcard
•
12th Grade - University
10 questions
WEIRDO Subjunctive
Flashcard
•
10th - 12th Grade
10 questions
US History Practice EOC Exam - Part 1
Flashcard
•
11th Grade
11 questions
Linear Equations Review
Flashcard
•
8th Grade
11 questions
3G Article II of the US Constitution Flashcard
Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade