Pandas series

Pandas series

Assessment

Quiz

Computers

University

Medium

Created by

Harini P20CS004

Used 4+ times

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to create a pandas series from a python list?

Pd.createSeries(mylist)

Pd.Series(mylist)

Pd.getSeries(mylist)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to add the labels "x","y","z" to a pandas series?

pd.Series(mylist,names =["x","y","z"])

pd.Series(mylist, lables =["x","y","z"])

pd.Series(mylist, index =["x","y","z"])

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Minimum number of argument we require to pass in pandas series ?

0

1

2

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Series in pandas is

1 dimensional array

2 dimensional array

3 dimensional array

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can analyze the data in pandas with:

Series

DataFrame

Both of the above

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For what purpose a pandas is used ?

To create a GUI programming

To create a database

To create a High level array

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output for the following code?


import pandas as pd

s = pd.Series([1,2,3,4,5],index = ['a','b','c','d','e'])

print s['a']

1

2

3

4

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?