
Quiz on Pandas
Authored by Ebenezer 2153
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?