In a DataFrame, axis-0 is for

Python Pandas Quiz Class 12

Quiz
•
Computers
•
12th Grade
•
Hard
Ashok Uttam
FREE Resource
146 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Columns
Rows and Columns both
Rows
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To get the Transpose of a DataFrame D1, you can write _____________.
D1.T
D1.Transpose
D1.swap
All of these
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To display the 3rd, 4th and 5th columns from the 6th to 9th rows of a dataframe DF, you can write ________.
DF.loc[6:9, 3:5]
DF.loc[6:10, 3:6]
DF.iloc[6:10, 3:6]
DF.iloc[6:9, 3:5]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which among the following can be used to create a DataFrame in Pandas?
A scalar value
An ndarray
A python dictionary
All of these
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To delete a row from a DataFrame, you may use the __________ statement.
remove
delete
drop
cancel
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have a Pandas dataframe (assigned to the variable df) with the given data. Which of the following code snippets will return the temperature and rainfall of rows 2 and 3?
df[['temperature','rainfall']][1:3]
df['temperature', 'rainfall'][1:3]
df.iloc[1:3]
df.iloc[1:3,1:2]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the most suitable option. Statement I: A DataFrame is size mutable. Statement II: A series cannot contain duplicate indexes.
I is False and II is True
I is True and II is True
I is False and II is False
I is True and II is False
Create a free account and access millions of resources
Similar Resources on Quizizz
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1

Quiz
•
9th - 12th Grade