Quiz 5.1
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Mohand Mahmoud
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is output:
import pandas as pd
mydataset = {
'cars': ["BMW", "Volvo", "Ford"],
'passings': [3, 7, 2]
}
myvar = pd.DataFrame(mydataset)
cars passings
BMW 3
Volvo 7
Ford 2cars passings
0 BMW 3
1 Volvo 7
2 Ford 20 1
1 7
2 2
dtype: int642.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to make Empty DataFrame ???
import pandas
myvar = pandas.DataFrame()
print(myvar)
import pandas
print(pandas.DataFrame.empty())
import pandas
myvar = pandas.DataFrame.empty()
print(myvar)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import pandas as pd
a = [1, 7, 2]
myvar = pd.Series(a)
print(myvar) what is output ??
0 1
1 7
2 2
dtype: int64 car passings
BMW 3
Volvo 7
Ford 2cars passings
0 BMW 3
1 Volvo 7
2 Ford 2Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import pandas as pd
a = [1, 7, 2]
myvar = pd.Series(a)
print(myvar[1])
1
2
NAN
all choisies is wrong
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import pandas as pd
a = [1, 7, 2]
myvar = pd.Series(a, index = ["x", "y", "z"])
print(myvar["y"])
y
"y"
NAN
all choisies is wrong
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import pandas as pd
calories = {"day1": 420, "day2": 380, "day3": 390}
myvar = pd.Series(calories, index = ["day1", "day2"])
print(myvar)
what is output????
day1 420
day2 380
dtype: int640 420
1 380
dtype: int64 420 day1
380 day2
dtype: int64Non of them
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is output :
import pandas as pd
data = {
"calories": [420, 380, 390],
"duration": [50, 40, 45]
}
#load data into a DataFrame object:
df = pd.DataFrame(data)
print(df.loc[0])
calories 380 duration 40 Name: 0, dtype: int64
calories 390 duration 45 Name: 0, dtype: int64
calories 420
duration 50
Name: 0, dtype: int64
calories 420 duration 50 Name: 0, dtype: dataframe
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Aplikasi Perkantoran
Quiz
•
Professional Development
20 questions
QUIZZ KJD - BIOS
Quiz
•
KG - Professional Dev...
21 questions
SKD - Word
Quiz
•
KG - Professional Dev...
20 questions
Basic 2 Python
Quiz
•
12th Grade - Professi...
16 questions
Arduino
Quiz
•
Professional Development
17 questions
Lección1 - JavaScript
Quiz
•
1st Grade - Professio...
20 questions
Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik
Quiz
•
1st Grade - Professio...
15 questions
Python Class 1
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
