wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

4-5 Q

Total questions: 12

Worksheet time: 7mins

Name
Class
Date
1.

What is NaN?*

a)

in pandas dataframe NaN means that the value was missing (absent)

b)

in pandas dataframe NaN means that the value is categorical

c)

in pandas dataframe NaN means that the value is available

d)

in pandas dataframe NaN means that the value is numerical

2.

pyplot is ...

a)

a sub-module of the NumPy library, each its function makes some change to an array.

b)

a sub-module of the Matplotlib library, each its function makes some change to a figure.

c)

none of the given

d)

a sub-module of the Pandas library, each its function makes some change to a DataFrame.

3.

The ... function is used to get unique values from a column. *

a)

unique()

b)

isunique()

c)

get_unique()

d)

isna()

4.

... change names of the axisplt.xlabel() and plt.ylabel()

a)

plt.x() and plt.y()

b)

plt.xlabel() and plt.ylabel()

c)

plt.xlim() and plt.ylim()

d)

plt.legend()

5.

... makes a box plot from DataFrame columns.

a)

DataFrame.plot.box()

b)

DataFrame.create_boxplot()

c)

DataFrame.boxplot()

d)

DataFrame.add_boxplot()

6.

The following function is used to display all currently active figure objects*

a)

plt.plot()

b)

plt.present()

c)

plt.display()

d)

plt.show()

7.

What package was used in the Lab works 4 and 5 to create visualizations? *

a)

Jupyter Notebook

b)

NumPy

c)

Pandas

d)

Matplotlib

8.

Define the name of the following chart *

a)

boxplot

b)

scatterplot

c)

line chart

d)

histogram chart

9.

For DataFrame.plot() which parameter defines the kind of plot to produce?*

a)

kind

b)

chart

c)

type

d)

plot

10.

plot function of pandas

a)

none of the given

b)

makes plots of Series or DataFrame.

c)

draws a picture according to the description

d)

reads a CSV file into DataFrame

11.

The isna() method ...

a)

returns a DataFrame object where all the values are replaced with a Boolean value True for NA (not-a -number) values, and otherwise False.

b)

returns a DataFrame object where all the values are replaced with a Boolean value True for duplicate values, and otherwise False.

c)

returns a DataFrame object where all the values are replaced with a Boolean value True for numerical values, and otherwise False.

d)

returns a DataFrame object where all the values are replaced with a Boolean value True for unique values, and otherwise False.

12.

қайсысы жылан ?

a)

b)

c)

d)