wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Class XII

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

Pandas is the most popular library in the scientific Python ecosystem for doing data analysis.

a)

True

b)

False

2.

To delete a row from a Dataframe, you may use ____________statement

a)

del

b)

drop

c)

cancel

d)

remove

3.

You can use numpy (a)   for missing data.

4.

To get the number of dimensions of a Series object, ____________ attribute is displayed

a)

itemsize

b)

size

c)

index

d)

ndim

5.

The rename() function requires (a)   argument to make changes in the original dataframe.

6.

A dataframe object can store only Homogeneous elements

a)

True

b)

False

7.

To check if the Series object contains NAN values, _____________ attribute is displayed.

a)

hasnans

b)

nbytes

c)

ndim

d)

dtype

8.

Which among the following can be used to create a DATAFRAME in Pandas

a)

An nd array

b)

A Scalar Value

c)

A Python Dict

d)

All of these

9.

To get the number of bytes of the Series Data, ___________________ attribute is used.

a)

index

b)

size

c)

itemsize

d)

ndim

10.

The axis 0 identifies a dataframe's (a)  

11.

To get the Transpose of a dataframe D1, you can write (a)  

12.

To display third element of a series object S, you will write_____________

a)

S[2]

b)

S[3]

c)

S[:2]

d)

S[:3]

13.

To display, first three elements of a Series object S, you may write_________________________

a)

S[3]

b)

S[:3]

c)

S[3rd]

d)

all of these

14.

The axis 1 identifies a dataframe's (a)  

15.

Series object's indexes are necessarily from 0 to n-1 always

a)

True

b)

False