DATAFRAME AND SERIES

Quiz
•
Computers
•
12th Grade
•
Medium
VRINDA SUKANYA
Used 67+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Given a Pandas series called Marks, the command which will display the first 3 rows is .
print(Marks.head(3))
print(Marks.Head(3))
print(Marks.heads(3)
print(Marks.Heads(3))
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Given the following Series A1 and A2: 1
A1 A2
a 20 a 70
b 10 b 30
c 24 c 84
d 70 d 80
Write the command to find the sum of series A1 and A2
A1+A2
sum(A1,A2)
a1+a2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The __________ attribute of a dataframe object returns the row labels of a dataframe.
columns
Columns
Index.Values
index.values
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Say true or false, A Dataframe object is mutable.
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
DataFramedf
Age Name
rank1 28 Tom
rank2 34 Jack
rank3 29 Steve
rank4 42 Ricky
Find out the command used to get the following output from the above dataframe,
Age
rank1 28
rank2 34
rank3 29
rank4 42
Print(df[‘Age’])
print(df[‘Age’])
print(df(‘Age’))
Print(df[‘Age’], axis=1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The instructor wants to know the age of the persons with rank3. Help her to identify the correct set of statement/s from the given options:
a) Print(df.loc[‘rank3’])
b) print(df.iloc[‘rank3’])
c) print(df.loc[‘rank3’])
d) Print(df.loc(‘rank3’))
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statement/s will give 2 rows from bottom of the dataframe ?
Print(df.tail())
print(df.tail(2))
print(df.tail[2])
print(df.tail(4))
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Multimedia Fundamentals

Quiz
•
9th - 12th Grade
10 questions
PF Unit 10

Quiz
•
9th Grade - University
15 questions
Types of Media

Quiz
•
12th Grade
8 questions
Pandas DataFrame(2) - Combine dataframes

Quiz
•
12th Grade
10 questions
Class 12 info

Quiz
•
12th Grade
10 questions
Data Science 2

Quiz
•
12th Grade
15 questions
Progamming - Java Syntax

Quiz
•
11th - 12th Grade
10 questions
STRING MANIPULATION (PYTHON)

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade