IP-Home Assignment

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

CAUVERY PUBLIC SCHOOL – KARAIKAL

SENIOR SECONDARY
(Affiliated to CBSE, New Delhi - Affln No:2930003)

Class :XII Home Assignment Sub:Informatics Practices

1.
Given a DataFrame namely “employee” that stores the details of
employees:

a) Write a statement to display Name, Designation and Salary


columns from the above employee DataFrame.
b) Write a statement to display Name and Salary columns from the
above DataFrame

2. Write a program to create a DataFrame from a 2D array as shown


below:
11 22 33

44 55 66

77 88 99
3. Write a code to create DataFrame object using an ndarray that
has 5 elements.

4. Consider two series objects “total_stocks” and “available_stock” that


store number of total number of stocks of different products and
available stocks for the same items. Write a program to create another
Series object that stores consumed stocks per products and then create
a DataFrame object from these Series objects.

5.Write a program to create a DataFrame to store weight, age and


names of 3 people. Print the DataFrame.

You might also like