0% found this document useful (0 votes)
46 views

Grade 12 Informatics Practices Worksheet No 2: SNBP International School & Kidzone

The document contains a worksheet with questions about pandas DataFrames. It asks about the properties of DataFrames like being multidimensional, using indexes for rows, and the tail() function to display the last n rows. It also contains questions about creating DataFrames from dictionaries, identifying rows and columns using axes 0 and 1, and syntax for creating DataFrames.

Uploaded by

10B Zoya Gous
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Grade 12 Informatics Practices Worksheet No 2: SNBP International School & Kidzone

The document contains a worksheet with questions about pandas DataFrames. It asks about the properties of DataFrames like being multidimensional, using indexes for rows, and the tail() function to display the last n rows. It also contains questions about creating DataFrames from dictionaries, identifying rows and columns using axes 0 and 1, and syntax for creating DataFrames.

Uploaded by

10B Zoya Gous
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SNBP INTERNATIONAL SCHOOL & KIDZONE

SENIOR SECONDARY SCHOOL


MORWADI , PIMPRI, PUNE
CBSE AFFILIATION NO. 1130522
Grade 12

Informatics Practices Worksheet No 2

1. DataFrame is ___________ dimensional data structure.


2. In DataFrame, __________ is used for the row label.
3. _____________ function return last n rows from the object based on
position.
4. Hitesh wants to display the last four rows of the dataframe df and has
written the following code : df.tail( ) but last 5 rows are being
displayed. Identify the errors and rewrite the correct code so that last 4
rows get displayed.

5. If a Dataframe is created using a 2D dictionary, then the indexes/row


labels are formed from
(a) dictionary's values (b) inner dictionary's keys
(c) outer dictionary's keys (d) none of these

6. If a dataframe is created using a 2D dictionary, then the column labels


are formed from
(a) dictionary's values (b) inner dictionary's keys
(c) outer dictionary's keys (d) none of these

7. The axis 0 identifies a dataframe's


(a) rows (b) columns
(c) values (d) datatype

8. The axis 1 identifies a dataframe's

Grade 12/IP/Worksheet2/2023-2024
(a) row (b) columns (c) values (d) datatype

9. To get the number of elements in a dataframe,


(a) size (b) shape (c) values (d) ndim

10. To get a number representing number of axes in a dataframe, used.


attribute may be
(a) size (b) shape (c) values (d) ndim

11. A Dataframe object is value mutable.

a. True b. False

12. Amongst which of the following is / are used to analyze the data in
pandas.

a. Dataframe c. Series
b. Both A and B d. None of the mentioned above

13. Amongst which of the following is a correct syntax for panda's


dataframe?

A. Pandas.DataFrame(data, index, dtype, copy)


B. pandas.DataFrame( data, index, columns, dtype, copy)
C. pandas.DataFrame(data, index, dtype, copy)
D. pandas.DataFrame( data, index, rows, dtype, copy)

14. Amongst which of the following can be used to create various inputs
using pandas DataFrame.

A. Lists, dict c.Series


B. Numpy ndarrays and Another DataFrame d. All of the above

15. What is DataFrame. Explain with example.

Grade 12/IP/Worksheet2/2023-2024

You might also like