You are on page 1of 2

5.

Suggested Practical List


5.1 Data Handling

1.Create a panda’s series from a dictionary of values and a ndarray


2. Given a Series, print all the elements that are above the 75th percentile.
3. Create a Data Frame quarterly sales where each row contains the item category, item
name, and expenditure. Group the rows by the category and print the total expenditure per
category.
4. Create a data frame for examination result and display row labels, column labels data
types of each column and the dimensions
5. Filter out rows based on different criteria such as duplicate rows.
6. Importing and exporting data between pandas and CSV file
7.Creation of series from scalar values(pg.29 NCERT)
8.Creation of series from NumPy Arrays (pg.30 NCERT)
9.Creation of DataFrame from NumPy ndarrays ( pg.41 NCERT)
10. Creation of DataFrame from List of Dictioneries (pg.41 NCERT)
11. Creation of DataFrame from Dictionery of Lists (pg.42 NCERT)
12. Creation of DataFrame from Dictionery of Series (pg.42 NCERT)
13.Conssider the DataFrame (pg:45,46, NCERT)
Arnab Ramit Samridhi Riya Mallika Preeti

Maths 90 92 89 81 94 89
Science 91 81 91 71 95 78
Hindi 97 96 88 67 99 76
i)Add a new column to the dataframe.
ii) Add a new row to the dataframe.
14)Consider the dataframe (pg.47 NCERT)
Arnab Ramit Samridhi Riya Mallika
Maths 90 92 89 81 94
Science 91 81 91 71 95
Hindi 97 96 88 67 99
English 95 86 95 80 95
i)Delete row from the above DataFrame
ii) Delete column from the above DataFrame
15.Consider the Dataframe (pg.48 NCERT)
Arnab Ramit Samridhi Riya Mallika
Maths 90 92 89 81 94
Science 91 81 91 71 95
English 97 96 88 67 99
Hindi 97 89 78 60 45
i)Rename row labels of DataFrame
ii) Rename Column labels of DataFrame

5.2 Visualization
1. Given the school result data, analyses the performance of the students on different parameters, e.g
subject wise or class wise.
2. For the Data frames created above, analyze, and plot appropriate charts with title and legend.
3. Take data of your interest from an open source (e.g. data.gov.in), aggregate and summarize it. Then
plot it using different plotting functions of the Matplotlib library.
4. Prayatna sells designer bags and wallets .During the sales season, he gave discounts
ranging from 10% to 50% over a period of 5 weeks. He recorded his sales for each type of
discount in an array. Draw a scatter plot to show a relationship between the discount offered
and sales made.
(pg.124 NCERT)

5.3 Data Management


1. Create a student table with the student id, name, and marks as attributes where the student id is the
primary key.
2. Insert the details of a new student in the above table.
3. Delete the details of a student in the above table.
4. Use the select command to get the details of the students with marks more than 80.
5. Find the min, max, sum, and average of the marks in a student marks table.
6. Find the total number of customers from each country in the table (customer ID, customer Name,
country) using group by.
7. Write a SQL query to order the (student ID, marks) table in descending order of the marks.

The programs given below are from NCERT exercise of the first chapter:
8. question number 3 (pg 24)
9. question number 2 (pg 23)

You might also like