wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python pandas 🐼

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Who is the main author of pandas?

a)

Karl pearson

b)

Wes McKinney

c)

J D Hunter

d)

None of these

2.

Which method applies the function on each individual data element of the dataframe?

a)

Apply ()

b)

Applymap ()

c)

hist()

d)

pivot ()

3.

How to check if a data frame St has any missing values?

a)

df.null(). values.any()

b)

df.isnull(). values.any()

c)

df.empty(). values.any()

d)

df.empty().any()

4.

Which of the following statements is true?

a)

Quantiles are points in a distribution that relate to the rank order of the values in their distribution

b)

pivoting technique rearranges data from rows and columns by possibly aggregating data from multiple sources in a report form so that data can be viewed in different perspectives

c)

Sorting refers to arranging data in a particular order

d)

All of these

5.

What is the use of lambda function?

a)

One typically writes a lambda function on the fly when one wants to write a function for one time use

b)

It is a predefined function of pandas

c)

It is a predefined module of matplotlib

d)

None of these

6.

Histogram belongs to

a)

Quantitative variable

b)

Single variable

c)

Linear variable

d)

All of these

7.

What is the output of the following snippet

(a)  

8.

Which method is used to access vertical subset of a dataframe?

a)

iterrows()

b)

iteritems()

c)

mod()

d)

None of these

9.

Given are two objects, a list object namely lst1 and a series object ser1, both are having similar values, i.e. 2,4,6,8. Find out the output produced by following statements:

(I) print (lst1*2)

(II) print (ser1*2)

(a)  

10.

Which function allows us to discover and show the underlying frequency distribution of a set of continuous data?

a)

Bar graph

b)

Frequency polygon

c)

Five number summary

d)

None of these