Assuming the given series, named stud, which command will be used to print 5 as output? Amit 90 Ramesh 100 Mahesh 50 john NaN Abdul 89 Name: Student, dtype: int64

Practice Worksheet- Informatics Practices

Quiz
•
Computers
•
12th Grade
•
Hard
JEEN JO
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
stud.index
stud. length
stud. values
stud.size
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be produced by the following python code? (Assuming that all necessary libraries and modules are imported) series1 = pd.Series(np.array([31,28,31,30]), index = ["Jan", "Feb", "Mar"]) print(series1)
Error: Length of passed values is 4, index implies 3
No output
Jan 31 Feb 28 Mar 31
Jan 31 Feb 28 Mar 31 Apr NaN
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to return both the first column and the second column in a pandas DataFrame df? (considering default labels for rows and columns)
df.loc [ : ,0,1]
df[[0,1]]
df.loc[[0-1]]
df.loc[[0,1]]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To rename the row indices 'Emp1' to 'Manisha', 'Emp2' to 'Shreya', 'Emp3' to 'Roshan' and 'Emp4' to 'Rakesh' in a data frame EmpD, Which of the following statement (a) to (d) will be used?
EmpDF=EmpDF.rename({'Emp1':'Manisha', 'Emp2': 'Shreya', 'Emp3': 'Roshan', 'Emp4': 'Rakesh'}, axis = 'index')
EmpDF=EmpDF.rename({'Emp1':'Manisha', 'Emp2': 'Shreya', 'Emp3': 'Roshan', 4': 'Emp 'Emp4': 'Rakesh'}, axis = 'rows')
EmpDF=EmpDF.rename(['Emp1':'Manisha', 'Emp2': 'Shreya', 'Emp3': 'Roshan', 'Emp': 'Rakesh'], axis = 'index')
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct statement to read from a CSV file in a DataFrame is:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following command is used to display values of all the records having price>3?
print(df[df['price']>3])
print(df['price']>3)
print(df.price>3])
print(df('price')>3)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used to specify the data while creating a DataFrame?
Series
List of Dictionaries
Structured ndarray
All of these
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
AV1\R1 3TEC_Ciência de Dados - Aula 01 a 16

Quiz
•
1st Grade - University
13 questions
MySQL- group by and foreign key

Quiz
•
12th Grade
15 questions
Python study group: Week 3

Quiz
•
12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
17 questions
CP M.6 Assessment Review

Quiz
•
9th - 12th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
20 questions
Adobe Illustrator Ch1-2

Quiz
•
9th - 12th Grade
16 questions
Test on dataframe python

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
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