wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Recap of Numpy, Pandas and Matplotlib

Total questions: 13

Worksheet time: 7mins

Name
Class
Date
1.

What does np.linspace() function returns?

a)

Return evenly spaced values within a given interval

b)

Return evenly spaced values over specified no. of intervals

c)

Returns a line in space

2.

np.full() returns?

a)

Full array with random elements

b)

Full array with incrementing elements

c)

Full array with specified fixed value

3.

For eg. arr=[[1,2,3],[4,6,6],[7,5,1]] what will arr[3,2] return?

a)

5

b)

6

c)

None of these

4.

What does axis=1 represent?

a)

columns

b)

rows

c)

rows and columns

5.

What does np.argsort() returns?

a)

returns array in sorted order

b)

returns array indices in sorted order

c)

returns array with new shape

6.

What are the two data structures in pandas?

a)

list and tuple

b)

list and dictionary

c)

series and data frame

7.

What does describe function returns?

a)

Describe sthe shape of Data frame

b)

Describe general statistics

c)

Returns saem random table

8.

How to create a copy of the Dataframe?

a)

df1=df

b)

df1=copy_of(df)

c)

df1=df.copy()

9.

Difference between loc and iloc

a)

loc is integer based

b)

iloc is label based

c)

loc is label based and iloc is integer based

10.

What does dropna() function drops?

a)

NA values

b)

0 values

c)

NA and 0 values

11.

Why do we use legend() function?

a)

To label x axis and y axis

b)

To give title to representation

c)

To specify the line colors with label

12.

What is unique() function?

a)

Returns unique values

b)

return unique column names

c)

returns unique row names

13.

Which graph can be used for representing percentages of parts as whole?

a)

Histogram

b)

Scatterplot

c)

Pie chart