Python Pandas

Quiz
•
Computers
•
12th Grade
•
Hard
Learning VG
Used 64+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give the output of the following code:
>>>import pandas as pd
>>>dict1 = {'AR' : 100, 'VR' : 200, 'AI' : 300}
>>>ser = pd.Series(dict1)
>>>print(ser[1])
AR
100
VR
200
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print(ser[2,4])
print(ser[[2:4]])
print(ser[[2,4]])
print(ser[2,3,4])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print(ser[[1,3]])
print(ser[1:3])
print(ser[[1:3]])
print(ser[1,3])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let us suppose ser is a series. What will be the print statement to display last 3 elements?
print(ser.head(3))
print(ser.tail(3))
print(ser.head())
print(ser.tail())
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the print statement to display the elements of a series series1 from end till beginning in step 2?
print(series1[::-2])
print(series1[::2])
print(series1[:-2:])
print(series1[:2:])
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
pd.DataFrame(DICT1, columns=["NAME","DOB"])
pd.DataFrame(DICT1, index=["NAME","DOB"])
pd.DataFrame(DICT1, index=["NAME":"DOB"])
pd.DataFrame(DICT1, columns=["NAME":"DOB"])
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print(pd.DataFrame(DICT1, index=[1,2,3], columns=["NAME","SCODE"]))
print(pd.DataFrame(DICT1, index=[501,502,503], columns=["NAME","SCODE"]))
print(pd.DataFrame(DICT1, index=[501,502,503], columns=["NAME":"SCODE"]))
print(pd.DataFrame(DICT1, index=[501:503], columns=["NAME","SCODE"]))
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Python: списки, кортеж, словник, множина

Quiz
•
9th - 12th Grade
12 questions
Dataframe

Quiz
•
10th - 12th Grade
10 questions
Ciência de Dados - Importando dados

Quiz
•
12th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
15 questions
Conditionals Unit Quiz

Quiz
•
9th Grade - University
11 questions
Python Inputs

Quiz
•
9th - 12th Grade
15 questions
Selection Quiz 2

Quiz
•
12th Grade
10 questions
พื้นฐานภาษาไพทอน-2-คำสั่ง Print

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University