
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
7 questions
Act 1 - Lily's character
Flashcard
•
10th Grade - University
9 questions
Sequential Evaluation Process
Flashcard
•
University - Professi...
6 questions
Chapter 5 SS vocab
Flashcard
•
4th Grade
10 questions
Sectors of Indian Economy
Flashcard
•
10th Grade
10 questions
Close Up C1: Unit 4: Phrases and Idioms
Flashcard
•
10th Grade
10 questions
Our Economy - 2
Flashcard
•
2nd Grade
8 questions
CAP AEPE EP1
Flashcard
•
3rd Grade
8 questions
BAIB3004 Week 3 Lecture Recap Flashcards
Flashcard
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade