Python Pandas

Python Pandas

12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Pandas

Python Pandas

12th Grade

9 Qs

Pandas-Series

Pandas-Series

12th Grade

15 Qs

Pandas Series-1–Quiz

Pandas Series-1–Quiz

11th - 12th Grade

11 Qs

Day 7 Practice on Dictionaries

Day 7 Practice on Dictionaries

12th Grade

14 Qs

Series - 19/03/2024

Series - 19/03/2024

12th Grade

12 Qs

Quiz-Pandas-I-13-May

Quiz-Pandas-I-13-May

12th Grade

15 Qs

Java Strings

Java Strings

9th - 12th Grade

12 Qs

Series1

Series1

12th Grade

10 Qs

Python Pandas

Python Pandas

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Learning VG

Used 62+ 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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?