Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.5k views
in General by (29.7k points)

Answer the following based on the series given below. 

import pandas as pd 

list1=[1,2,3,4,5,6,7,8] 

list2=['swimming','tt','skating','kho kho', 'bb', 'chess', 'football',"cricket"] 

school=pd.Series(list1,index=list2) 

school.name=("little") 

print (school*2) #statement 1 

print (school.tail(3)) # statement 2 

print (school["tt"]) # statement 3 

print (school[2:4]) # statement 4

i. Choose the correct name of the series object given above

a) list1 

b) list2 

c) school 

d) little 

ii. Choose the correct output for the statement: 

print (school.tail(3)) # statement 2 

a. swimming 1

tt 2 

skating 3 

b. chess 6 

football 7 

cricket 8 

c. 4 

d. kho kho 4 

bb 5 

chess 6

football 7 

cricket 8 

iii. Choose the correct output for the statement: 

print (school["tt"]). # statement 3 

a. 2 

b. 3 

c. tt 2 

d. true 

iv. Identify the correct output for:

print (school[2:4]) # statement 4. 

a. skating 3 

kho kho 4 

b. tt 2 

skating 3

kho kho 4 

c. skating 3 

kho kho 4 

bb 5 

d. skating 3 

kho kho 4 

bb 5 

chess 6 

football 7 

cricket 8 

v. The correct output of the statement: 

print (school*2) # statement 1 will be . 

a. swimming 3 

tt 4 

skating 5 

kho kho 6 

bb 7 

chess 8 

football 9

cricket 10 

b. swimming 2 

tt 4 

skating 6 

kho kho 8 

bb 10 

chess 12 

football 14 

cricket 16 

c. swimming False 

tt False 

skating True 

kho kho True 

bb True 

chess True 

football True 

cricket True 

d. swimming 1 

tt 4 

skating 9 

kho kho 16 

bb 25 

chess 36 

football 49 

cricket 64

Please log in or register to answer this question.

1 Answer

+1 vote
by (29.6k points)

i. d) little 

ii. b) chess 6 

football 7 

cricket 8 

iii. a) 2

iv. a) skating 3 

kho kho 4 

v. b) swimming 2 

tt 4 skating 6 

kho kho 8 

bb 10 

chess 12 

football 14 

cricket 16

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...