State the following statement as true or false
"DataFrame values are immutable"
DataFrame and Series
Quiz
•
Computers
•
12th Grade
•
Hard
Vijayalakshmi Kavoor
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
State the following statement as true or false
"DataFrame values are immutable"
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the o/p of the following:
import pandas as pd
s=[6,4,2]
s1=pd.Series(s*2)
print(s1+2)
0 14
1 10
2 6
dtype: int64
0 8
1 6
2 4
3 8
4 6
5 4
dtype: int64
0 8
1 6
2 4
dtype: int64
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The following code create a dataframe named ‘D1’ with _______________ columns.
import pandas as pd
D1 = pd.DataFrame([1,2,3] )
1
2
3
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output
import pandas as pd
s1=pd.Series(1000,index=range(100,500,100))
print(s1)
100 1000
500 1000
100 1000
dtype: int64
100 1000
200 1000
300 1000
400 1000
500 1000
dtype: int64
100 1000
200 1000
300 1000
400 1000
dtype: int64
100 1001
200 1002
300 1003
400 1004
dtype: int64
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Size attribute of the data frame returns total number of rows of the data frame
False
True
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose df is a data frame created from the dictionary,Column labels of the data frame df are displayed from
values
keys
keys and values
Nine of the above
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The attribute returns true if they are any NaN is
values
Nans
hasnans
10 questions
NumPy
Quiz
•
9th Grade - University
13 questions
Data Visualization Quiz
Quiz
•
9th - 12th Grade
10 questions
Reshaping & vStack&hstack( )
Quiz
•
9th Grade - University
10 questions
NumPy and Pandas Quiz
Quiz
•
12th Grade
15 questions
Python study group: Week 3
Quiz
•
12th Grade
10 questions
Pandas Part 2
Quiz
•
12th Grade
15 questions
Pandas Dataframe MCQs
Quiz
•
12th Grade
8 questions
Mastering DataFrame Creation
Quiz
•
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