Quiz on Pandas

Quiz on Pandas

University

10 Qs

quiz-placeholder

Similar activities

Quiz 10

Quiz 10

University

10 Qs

Julia

Julia

University

10 Qs

Data Analytics using Python - Quiz 4

Data Analytics using Python - Quiz 4

University

14 Qs

GenG Data Science Quiz

GenG Data Science Quiz

University

15 Qs

unit1

unit1

University

15 Qs

Engineering ACW Semester 2 - #2 Data

Engineering ACW Semester 2 - #2 Data

University

15 Qs

Computer Network Fun Review 5 - Data Link Layer

Computer Network Fun Review 5 - Data Link Layer

University

10 Qs

Switching Techniques

Switching Techniques

University

10 Qs

Quiz on Pandas

Quiz on Pandas

Assessment

Quiz

Computers

University

Hard

Created by

Ebenezer 2153

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does df.to_csv('file.csv', index=False) do?

Reads a CSV file

Saves the DataFrame to CSV without row index

Deletes the DataFrame

Converts DataFrame to Excel

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following creates an empty DataFrame?

pd.empty()

pd.createframe()

pd.DataFrame()

pd.frame()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of df.head(3)?

Last 3 rows

First 3 columns

First 3 rows

Summary statistics

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does df['Marks'] return?

A list

A NumPy array

A Series object

A DataFrame

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you select multiple columns in pandas?

df.column('A','B')

df['A','B']

df[['A','B']]

df.select('A','B')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will df.shape return?

Column names

Number of rows

Tuple with (rows, columns)

Data types

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns summary statistics of numeric columns?

df.info()

df.describe()

df.summary()

df.status()

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?