wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Series

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

pandas is a:

a)

Data Structure

b)

Series

c)

Dataframe

d)

Library

2.

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

3.

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

4.

Series in Pandas is

a)

1 Dimensional Array

b)

2 Dimensional array

c)

3 Dimensional array

d)

none of above

5.

Best way to import the pandas module in your program ?

a)

1.import pandas as p

b)

2.import pandas as pd

c)

3.import pandas as d

d)

4.All of the above

6.

Series.head() will return how many rows.

a)

2

b)

3

c)

4

d)

5

7.

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

a)

3 values from front

b)

3 values from last

c)

5 values

d)

none

8.

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

9.

Full form of NaN is

a)

Not a Null

b)

Not a Number

c)

Not a Numeric

d)

None of these

10.

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

a)

0

b)

1

c)

2

d)

3