Python Pandas/MatPlotLib

Quiz
•
Computers
•
12th Grade
•
Hard

Brian Akwirry
Used 16+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does df.groupby('column_name').mean() do in Pandas?
Groups the DataFrame by 'column_name' and calculates the mean of all columns
Finds the mean value of 'column_name'
Splits the DataFrame into groups based on 'column_name' and calculates the mean of each group
Sorts 'column_name' in ascending order
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In Pandas, how do you select the rows where the column 'age' is greater than 25?
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How would you save a plot as a PNG file in Matplotlib?
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
In Pandas, what does df.isnull().sum() return?
The sum of all values in the DataFrame
The total number of missing values in each column
A boolean value indicating if there are any null values
The sum of non-null values in the DataFrame
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In Matplotlib, how do you set the title of a plot?
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How can you create a new column in a DataFrame in Pandas?
df['new_column'] = value
df.add('new_column', value)
df.new_column(value)
df.insert('new_column', value)
8.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What does df.merge(other_df, on='key') do in Pandas?
Concatenates df and other_df based on 'key'
Performs an inner join between df and other_df on the 'key' column
Merges the two DataFrames on the index
Replaces the 'key' column in df with that in other_df
9.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In Matplotlib, which function is used to display a histogram?
Similar Resources on Wayground
10 questions
REVIEW AD KLS 9

Quiz
•
9th Grade - University
10 questions
Excel

Quiz
•
1st - 12th Grade
12 questions
SQL

Quiz
•
11th - 12th Grade
13 questions
Exploring Python Dataframes

Quiz
•
12th Grade
10 questions
Microsoft Excel Final

Quiz
•
9th - 12th Grade
10 questions
Quiz sobre Desenvolvimento de Sistemas

Quiz
•
12th Grade
10 questions
MOAC Word 2016 Lesson 5

Quiz
•
8th - 12th Grade
8 questions
DAVI Seaborn

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade