
Cleaning in Python Quiz

Quiz
•
Computers
•
University
•
Hard
Abdullah Muhammad 201-801-271
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python library is most commonly used for data cleaning and manipulation?
NumPy
SciPy
Pandas
Matplotlib
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function used in Pandas to identify missing values in a DataFrame?
isna()
fillna()
dropna()
replace()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove duplicate rows from a Pandas DataFrame?
DataFrame.drop_duplicates()
DataFrame.dropna()
DataFrame.remove_duplicates()
DataFrame.fillna()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method would you use to fill missing values in a DataFrame with the mean of a column?
fillna(mean)
fill(mean)
replace(na,mean)
fillna(DataFrame['column_name'].mean())
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function in Pandas is used to detect and remove outliers in a dataset?
DataFrame.describe()
DataFrame.dropna()
DataFrame.clip()
There is no direct function; outliers are typically handled using custom methods like IQR or Z-score.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function can you use in Pandas to rename the columns of a DataFrame?
rename_columns()
rename()
columns_rename()
change_columns()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you convert all string values in a DataFrame column to lowercase using Pandas?
DataFrame['column_name'].lower()
DataFrame['column_name'].apply(lower)
DataFrame['column_name'].str.lower()
DataFrame['column_name'].convert_lower()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
DBMS LAB

Quiz
•
University
20 questions
Excel Spreadsheet Intro

Quiz
•
KG - University
20 questions
Pandas and Data Visualization Quiz

Quiz
•
University
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
Sjmit-Q2-[Workshop-MAR-25]

Quiz
•
12th Grade - University
20 questions
Data Science (Data Preparation & Visualitation)/Pandas Python

Quiz
•
University
20 questions
Advanced Excel

Quiz
•
KG - University
20 questions
Beginner Quiz on ML and Python Basics

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade