wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Frame1

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

pandas is a:

a)

Data Structure

b)

Series

c)

Dataframe

d)

Library

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.

Which among the following options can be used to create a DataFrame in Pandas?

a)

A scalar value

b)

An ndarray

c)

A python dict

d)

All of the above

4.

DataFrame in pandas is

a)

1. dimensional array

b)

2. dimensional array

c)

3.dimensional array

d)

4.None of the above

5.

All pandas data structures are ___ mutable but not always _______mutable.

a)

a) size, value

b)

b) semantic, size

c)

c) value, size

d)

d) none of the mentioned

6.

Which of the following can be used to make a Dataframe?

a)

Series

b)

DataFrame

c)

Structured ndarray

d)

All of the above

7.

Dataframe can contain multiple series

a)

True

b)

False

8.

Series can be created from

a)

Array

b)

Dictionary

c)

Scaler value

d)

All of them

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.
df[‘List3’]=df[‘List1’]+df[‘List2’]
a)
Syntax is correct
b)
sytax not correct
c)
Can not use arithmatic operators