
Quiz-Pandas-I-13-May
Authored by ruchira -
Computers
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When you store a NaN value in a series object , Pandas requires the data type to be of__.
Integer type
Object type
Floating point
String type
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q1. Which of the following statement will import pandas?
(a) import panda as py
(b) import pandas as pd
(c) import pand as py as pd
(d) import pandas as py.pd
a
b
c
d
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the following code?
obj2=pd.Series( range(5))
print(obj2)
0 1
1 2
2 3
3 4
4 5
0 0
1 1
2 2
3 3
4 4
1 0
2 1
3 2
4 3
5 4
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the following output:
medals=pd.Series(15,index=range(1,6,2))
print(medals)
1 15
2 15
6 15
1 1
3 1
5 1
1 15
2 15
3 15
1 15
3 15
5 15
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which values cannot be compared using comparison operator?
Positive
Negative
NaN
float
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of :
obj=pd.Series([7,np.NaN,2])
print(obj[2])
7.0
2.0
NaN
6.0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output:
obj2=pd.Series([3.5,5.,6.5,8.])
print(obj2.size,obj2.hasnans)
4 False
4 True
4 F
3 True
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?