Quiz on Pandas

Quiz on Pandas

University

10 Qs

quiz-placeholder

Similar activities

Python Quiz - 6

Python Quiz - 6

University

10 Qs

Tableau Public #1 - Data Source and Familiarization

Tableau Public #1 - Data Source and Familiarization

University

8 Qs

unit-3

unit-3

University

15 Qs

Data Set Creation Exercises

Data Set Creation Exercises

University

10 Qs

Microsoft Excel Basics

Microsoft Excel Basics

5th Grade - University

10 Qs

Network Fundamentals-Physical layer

Network Fundamentals-Physical layer

9th Grade - Professional Development

14 Qs

Multimedia

Multimedia

University

10 Qs

Module 9-Address Resolution Protocol

Module 9-Address Resolution Protocol

9th Grade - Professional Development

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?