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
Quiz sobre Desenvolvimento de Sistemas

Quiz
•
12th Grade
13 questions
Exploring Python Dataframes

Quiz
•
12th Grade
10 questions
DS 3

Quiz
•
12th Grade
7 questions
บทที่ 2 2.1 ม.3/2

Quiz
•
9th - 12th Grade
10 questions
Data Science 2

Quiz
•
12th Grade
10 questions
csv and DataFrame

Quiz
•
12th Grade
10 questions
DATAFRAME AND SERIES

Quiz
•
12th Grade
10 questions
Wrażenia globlne w Linxie

Quiz
•
10th Grade - 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