Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pandas Series-1–Quiz

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

Which is true for series.

a)

Size is mutable,Values is mutable

b)

size is immutable,values is mutable

c)

size is mutable,values is immutable.

d)

none

2.

Series.tail(3) will return how many values.

a)

3 values from front

b)

3 values from last

c)

5 values

d)

none

3.

Series.head() will return how many rows.

a)

2

b)

3

c)

4

d)

5

4.

we can analyze the data in pandas with :

a)

Series

b)

Dataframe

c)

Both

d)

none

5.

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

a)

0

b)

1

c)

2

d)

3

6.

Full form of NaN is

a)

Not a Null

b)

Not a Number

c)

Not a Numeric

d)

None of these

7.

Write the output for the following:

import pandas as pd1

s = pd1.Series(5, index=[0, 1, 2, 3])

print(s)

a)

0 5

b)

0 5

1 5

2 5

3 5

dtype: int64

c)

1 5

2 5

2 5

4 5

dtype: int64

d)

0 5

1 5

2 5

3 5

dtype: object

8.

Pandas is_________.

a)

a Python library that is built on NumPy and provides easy-to-use data structures and data analysis tools for the Python programming language.

b)

a Python 2D plotting library which produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms.

c)

a Python library that implements a range of machine learning,

preprocessing, cross-validation and visualization algorithms using a unified interface.

9.

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])

a)

AR

b)

100

c)

VR

d)

200

10.

Which of the following commands is used to install Pandas?

a)

pip install python-pandas

b)

pip install pandas

c)

python install python

d)

python install pandas

11.

Have you enjoyed the quiz on Pandas Series?

a)

Yes

b)

No