Pandas, NumPy, and Matplotlib Basics Quiz

Pandas, NumPy, and Matplotlib Basics Quiz

University

25 Qs

quiz-placeholder

Similar activities

Workshop Quiz

Workshop Quiz

University

25 Qs

Midterm Exam - DV - Part 1

Midterm Exam - DV - Part 1

University

20 Qs

Quizaro

Quizaro

University

20 Qs

GirlsWhoML Workshop 0

GirlsWhoML Workshop 0

University

20 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Data Science (Data Preparation & Visualitation)/Pandas Python

Data Science (Data Preparation & Visualitation)/Pandas Python

University

20 Qs

Sjmit-Q2-[Workshop-MAR-25]

Sjmit-Q2-[Workshop-MAR-25]

12th Grade - University

20 Qs

B.Com Python and Pandas

B.Com Python and Pandas

University

30 Qs

Pandas, NumPy, and Matplotlib Basics Quiz

Pandas, NumPy, and Matplotlib Basics Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Abdullah Muhammad 201-801-271

Used 2+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the primary data structure in Pandas?

List

DataFrame

Array

Series

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the pandas.read_csv() function do?

Writes data to a CSV file

Reads data from a CSV file

Converts a CSV file into a NumPy array

Plots data from a CSV file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you select a single column from a DataFrame in Pandas?

df.column_name

df[column_name]

df['column_name']

df(column_name)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to remove missing values in a Pandas DataFrame?

dropna()

fillna()

replace()

drop()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to display the first few rows of a DataFrame?

df.head()

df.tail()

df.first()

df.sample()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you apply a function to each element in a DataFrame column?

df['column'].apply(function)

df['column'].map(function)

df['column'].filter(function)

df['column'].reduce(function)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the groupby() function do in Pandas?

Sorts the DataFrame by the specified column

Groups the DataFrame by the specified column and aggregates data

Filters rows based on a condition

Combines multiple DataFrames into one

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?