Write the output of the following:
import pandas as pd
S1 = pd.Series(data = range(31, 2, -6), index = [x for x in "aeiou" ])
print(S1)
Python_Seires_Quiz_19.07.2023
Quiz
•
Computers
•
12th Grade
•
Hard
Vikas Sharma
Used 5+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Write the output of the following:
import pandas as pd
S1 = pd.Series(data = range(31, 2, -6), index = [x for x in "aeiou" ])
print(S1)
a 31
e 25
i 19
o 13
u 7
dtype: int64
a 31
e 25
i 19
o 13
dtype: int64
Error
None of the above
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
When we create a series from dictionary then the keys of dictionary become ________________
Index of the series
Value of the series
Caption of the series
None of the series
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Write the output of the following :
>>> S1=pd.Series(14, index = ['a', 'b', 'c'])
>>> print(S1)
a 14
b 14
c 14
dtype: int64
a 14
dtype: int64
Error
None of the above
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Write the output of the following:
>>> S1=pd.Series(14, 7, index = ['a', 'b', 'c'])
>>> print(S1)
a 14
b 7
c 7
dtype: int64
a 14
b 7
dtype: int64
Error
None of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Write the output of the following :
>>> S1=pd.Series([14, 7, 9] ,index = range(1, 8, 3))
>>> print(S1)
14 1
7 4
9 7
dtype: int64
1 14
4 7
7 9
dtype: int64
Error
None of the above
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many elements will be there in the series named “S1”?
>>> S1 = pd.Series(range(5))
>>> print(S1)
5
4
2
None of the above
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Fill in the blank to get the output as 3
import pandas as pnd
S1=pnd.Series([1,2,3,4], index = ['a','b','c','d'])
print(S1[___________])
‘c’
2
c
All of the above
20 questions
DataFrames in pandas Set1
Quiz
•
12th Grade
20 questions
Sjmit-Q2-[Workshop-MAR-25]
Quiz
•
12th Grade - University
20 questions
Pandas Quiz
Quiz
•
12th Grade
15 questions
Python study group: Week 3
Quiz
•
12th Grade
15 questions
Pandas Dataframe MCQs
Quiz
•
12th Grade
20 questions
Season 5 #Spaic Python Weekly Quiz
Quiz
•
KG - Professional Dev...
20 questions
CLASS_XII_SERIES_MCQ
Quiz
•
12th Grade
16 questions
Test on dataframe python
Quiz
•
11th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University