Python Study Group: Week 4

Quiz
•
Professional Development
•
12th Grade
•
Medium

Jeff Mao
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function in pandas is typically used to remove duplicate rows?
`drop_duplicates()`
`unique()`
`dropna()`
`remove()`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary function of the `merge()` function in pandas?
To concatenate two DataFrames vertically
To perform element-wise operations
To combine DataFrames using a common key
To clean data by removing NaN values
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of calling df.duplicated().sum() on a DataFrame df?
The number of duplicate rows in df
The number of unique rows in df
The total number of rows in df
The number of rows with missing values indf
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary function of the dropna() method in pandas?
Fill missing values with a specified value
Remove columns of a specific data type
Remove rows with missing values
Detect and remove outliers
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method should be used to replace missing values with an aggregate of a column in a pandas DataFrame?
replace()
fillna()
mean()
transform()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When merging two DataFrames in pandas, what does the `how` parameter specify?
The type of merge to perform (e.g., 'left', 'right', 'outer', 'inner')
The key to join on
How to sort the result
How to handle missing values
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a correct way to filter a DataFrame `df` to keep all rows where the column 'age' is greater than 25?
`df[df['age'] > 25]`
`df.filter(df['age'] > 25)'
`df.query('age > 25')`
Create a free account and access millions of resources
Similar Resources on Wayground
7 questions
Ideas principales y secundarias

Quiz
•
10th - 12th Grade
15 questions
Python Study Group: Week 5

Quiz
•
12th Grade - University
10 questions
Scientific Python

Quiz
•
KG - Professional Dev...
9 questions
Koła zębate 3

Quiz
•
9th - 12th Grade
15 questions
AKITO PRODUCT KNOWLEADGE

Quiz
•
KG - University
10 questions
Cloud Computing

Quiz
•
University - Professi...
10 questions
GITI-T07: Const+Mont+PServ

Quiz
•
University
9 questions
Junior 1: Unit 2 - Definitions

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Professional Development
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University