
DSES DataFrame Operations Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Mrs. Getzi Jeba 495
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function sorts a DataFrame df by the column 'Salary' in ascending order?
df.sort_values('Salary')
df.sort('Salary')
df.order_by('Salary')
df.arrange('Salary')
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does df.dropna(subset=['Age']) do?
Drops rows where 'Age' is missing
Drops all columns with missing values
Fills missing 'Age' values with zero
Drops the 'Age' column
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you select rows where 'Department' is 'HR'?
df[df['Department'] == 'HR']
df.query('Department = HR')
df.filter('HR')
df.select('Department == HR')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of df.groupby('City')['Population'].sum()?
Total population per city
Average population per city
Number of cities
Sorted population values
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add a column 'Tax' as 15% of 'Income'?
df['Tax'] = df['Income'] * 0.15
df.insert('Tax', df['Income'] * 0.15)
df.assign(Tax = df.Income * 0.15)
df.new_column('Tax', df['Income'] * 0.15)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does df.describe() return?
Summary statistics for numeric columns
Column names
Missing value counts
First 5 rows
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you rename the column 'OldName' to 'NewName'?
df.rename(columns={'OldName': 'NewName'})
df.columns.replace('OldName', 'NewName')
df['NewName'] = df['OldName']
df.set_column_name('OldName', 'NewName')
Access all questions and much more by creating a free account
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
20 questions
Computer Application in Education
Quiz
•
University
15 questions
Chapter : 9 Working with tables
Quiz
•
5th Grade - University
20 questions
Kuis Ms Excel
Quiz
•
12th Grade - University
20 questions
Soal Microsoft Excel kelas 6
Quiz
•
University
20 questions
ICT Short Quiz
Quiz
•
University
18 questions
Google Sheets ReViEw
Quiz
•
KG - University
15 questions
Spreadsheet
Quiz
•
4th Grade - University
15 questions
AV1\R1 3TEC_Ciência de Dados - Aula 01 a 16
Quiz
•
1st Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
