
Data Cleaning and Preparation Flashcard

Flashcard
•
•
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
Similar Resources on Wayground
10 questions
Pokemon GO

Flashcard
•
9th Grade
10 questions
7.5 Similar Figures

Flashcard
•
7th Grade
11 questions
Medians, altitudes, angle bisectors, and perpendicular bisectors

Flashcard
•
10th Grade
9 questions
Evaluating Online Sources to Learn about Landforms

Flashcard
•
3rd Grade
10 questions
FAA Rules for Flying Drones Over People Flashcard

Flashcard
•
9th - 12th Grade
10 questions
Parts of a Circle

Flashcard
•
9th - 12th Grade
10 questions
Vegetable Classification

Flashcard
•
8th Grade
10 questions
WEIRDO Subjunctive

Flashcard
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade