0% found this document useful (0 votes)
6 views6 pages

Sorted PETerm 2 Class 12

The document outlines a practical program list for Class 12, focusing on various tasks involving the creation and manipulation of pandas DataFrames and Series in Python. It includes exercises such as creating DataFrames from nested lists and dictionaries, performing operations like displaying specific rows and columns, inserting and deleting data, and generating visualizations. Additionally, it covers mathematical operations on Series and data handling with CSV files.

Uploaded by

n
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)
6 views6 pages

Sorted PETerm 2 Class 12

The document outlines a practical program list for Class 12, focusing on various tasks involving the creation and manipulation of pandas DataFrames and Series in Python. It includes exercises such as creating DataFrames from nested lists and dictionaries, performing operations like displaying specific rows and columns, inserting and deleting data, and generating visualizations. Additionally, it covers mathematical operations on Series and data handling with CSV files.

Uploaded by

n
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/ 6

PRACTICAL PROGRAM LIST CLASS 12

1)​ To write a Python program to create a panda’s Data Frame for the following
table Using Nested list:

2)​ To write a Python program to create a panda’s DataFrame called DF for the
following table Using Dictionary of List and perform the following
operations:

Create dataframe with above data


(i)​ To Display only column 'Toys' from DataFrame DF.
(ii)​ To Display the row details of 'AP' and 'OD' from DataFrame DF.
(iii)​ To Display the column 'Books' and 'Uniform' for 'M.P' and 'U.P' from
DataFrame DF.
(iv)​ To Display consecutive 3 rows and 3 columns from DataFrame DF.
3)​ To write a Python program to create a panda’s DataFrame called DF for the
following table Using Dictionary of List and perform the following
operations:

(i) Insert a new column “Bags” with values as [5891, 8628, 9785, 4475].
(ii) Delete the row details of M.P from DataFrame DF.

4)​ To write a Python program to create a panda’s DataFrame called DF for the
following table using Dictionary of List and display the details of students
whose Percentage is more than 85.

5)​ To write a Python program to create a DataFrame using Dictionary of list


and display all the attributes of the DataFrame.
6)​ To write a Python program to create a panda’s DataFrame called Students
for the following table and demonstrate iterrows and iteritems.

7)​ To Write a Python program to store the details of Employess’ such as


Empno, Name, Salary into a Employee.csv file. Also, write a code to read
employee details from csv file.
8)​

9) During a practical exam, a student Ankita has to fill in the blanks in a


Python program that generates a bar chart. This bar chart
represents the number of books read by four students in one month.
Write python code for following chart
10)​To write a Python program to create a Series to store 5 students Percentage
Using dictionary and print all the elements that are above 75 percentage.
11)​To write a Python program to create a Series object that stores the Initial
budget allocated (50000/- each) for the four quarters of the year: Qtr1,
Qtr2, Qtr3 and Qtr4.
12)​To write a Python program to create a Series object that stores the
Employee names as index and their Salary as values.
13)​To create a program in python to perform following mathematical
Operations on Two Series objects: (i) Addition (ii) Subtraction (iii)
Multiplication (iv) Division.
14)​To write a Python program to create two series i.e. population and average
income of Four Zones, and then calculate per capita income storing in third
pandas series print it.
15)​To write a Python program to create a Series using list and display all
attributes of the Series.

16)​To write a Python program to create a Series using list of Marks of 10


students and display first 5 Students’ marks and Last 2 Students’ marks
from Series object.
17)create a series S1 from the given data list of animals.
a)Sort the series S1 values as in descending order
b)Sort the series S1 as per index in ascending order
animal data list:
‘ape','hyena','cheetah','dog','elephant','bear','cow' with
their index “100,96,60,85,82,89,90 respectively """
18)create two series S1 & S2 from the given data lists.
a) find the average marks of two terms and store it in third series.
b)find the toppers in term one and term two

STUDENT DATA lists:


'abhi','bhavani','chakri','dharma','eshwar','phani with their term
one marks 100,96,60,85,82,89 respectively
'abhi','bhavani','chakri','dharma','eshwar','phani with their term
two marks 85,98,69,88,82,99 respectively """

19) Create a simple Pandas Series from a list and apply head and tail function

20)Create series using dictionary and arrays.

You might also like