wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

python

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

which library we import if we want to draw chart

a)

numpy

b)

matplotlib

c)

pandas

2.

if we want to create data frame we import

a)

numpy

b)

matplotlib

c)

pandas

3.

to join 2 arrays under each other we use the function

a)

vstack()

b)

hstack()

c)

append()

4.

to add a title in the chart we use the function

a)

title("title of the chart")

b)

plt.title("title of the chart")

c)

plt.title(title of the chart)

5.

we can not change the color of the chart

a)

false

b)

true

6.

we use the function to change rows to columns and columns to rows

a)

reshape()

b)

array()

c)

transpose()

7.

we use this function to get the average of array

a)

avg()

b)

average()

c)

mean()

8.

to create an array with only 5 zeroes

a)

x=np.zeroes(5)

b)

np.zeroes()

c)

np.zeroes(5)

9.

to change the header in data frame we use

a)

headers and columns

b)

index and columns

c)

rows and columns

10.

to get an element in data frame we use the function

a)

get()

b)

find()

c)

loc()