0% found this document useful (0 votes)
39 views35 pages

Ip Practical File Class 12 Boards

Uploaded by

jaat7854
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)
39 views35 pages

Ip Practical File Class 12 Boards

Uploaded by

jaat7854
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/ 35

ROYAL OAK INTERNATIONAL

SCHOOL
NEW PALAM VIHAR, SECTOR-11O,
GURUGRAM

A Practical le
for
For 2024-2025 Examination
As a part of the Informatics Practices (065)

Submitted by- Manvinder singh


Submitted to- Mrs. Sonali
Class- XII COMMERCE
Roll no. - 111111111111111
fi
CERTIFICATE

This is to certify that


Manvinder singh ,
has successfully completed the
Practical work entitled in the
subject Informatics
Practices(065)laid down in the
regulations of CBSE for the
purpose of Practical Examination
in Class XII

External Examiner Principal Internal Examiner


ACKNOWLEDGEMENT

I like to take this opportunity to thank our IP


teacher Ms. Sonali Khunger for guiding me in
my project, for providing valuable suggestions,
for her ongoing support during the project , from
, from initial advice, and provision of contacts in
the rst stages through ongoing advice and
encouragement , which led to the nal report of
this IP practical .

A special acknowledgement goes to my friends


who helped me in completing the project by
exchanging interesting ideas and sharing the
experience within the limited time frame
fi
fi
INDEX
S.NO
TOIPC PAGE
NO.
TEACHER’S
SIGN
Write Python program to create a pandas series to store 5 student’s 3
1. percentage using dictionary and print all the elements that are
above 75 percentage.

Write a python program to create a series object that stores the 4


2. initial budget allocated(70000 /- each) for the four quarters of the
year Wtr1, Qtr2, Qtr3, Qtr4.

Write a python program to create a series object that stores the 5


3. employee name as index and salary as value.

A series object trdata consists of around 2000 rows of data. Write 6


4. a program to print the following details :
i)First 200 rows of data ii) last 100 rows of data

7
5. Write a program to create a data series and sort the values of
the series object in ascending order of its values.
Write program to perform the following mathematical operations 8
6. on two series objects. I) Addition ii) subtraction iii)
Multiplication iv) Division
Write a program to create a Series using list of marks of 15 9
7. students and display First 5 student’s marks and last 3 student’s
marks from series object.
Write a program to create a panda’s dataframe for the following 10
8. table:
Given a DataFrame df ,Write a program to display only the weight 11
9. of first and third rows
Write a program to create pandas dataframe DF for the above table 12
10. and perform the following operations :
i) Insert a new column gender with values as [‘m’,’m’,’f’]
ii) Delete the row details of 2 from DF.

Write a program to create a pandas dataframe called df for the 13


11. following table using dictionary of list and display the details of
students whose percentage is more than 85.
Write a program to create pandas dataframe Student for the above 14
12. table and demonstrate iterrows and iteritems.

Create a DataFrame of your own choice taking some negative 15


13. values also. Write a program to replace all negative values by 0.
Write a python program to create a dataframe using dictionary of 16
14. list and display the following attributes of the dataframe : i)
index ii) column ii) axes iv) dimension

Write a python program to store the details of Employees such as 17


15. Employee number, name, salary into Employee.csv file. Also
write a code to read all the details from the csv file.

Write a python program to plot a line chart to depict the changing 18


16. weekly tomato and cabbage prices for 5 weeks. Also give
appropriate axes label, title and keep marker style as diamond and
marker edge color as ‘red’ for tomato.
Write a python program to create a dataframe for subject wise 19
17. average, save it to a CSV file. Draw a barchart with a width of
each bar as 0.25. Specify different color of each bar with proper
title and axes label.
Write a program to plot a multiple bar chart from CSV file for 20
18. subject wise scores of class A, class B and class C. Give
approprite label, title and color represent each chart and subjects.
Prof. Anupam is doing some research in tne field of Environment. 21
19. For some plotting purposes, he has generated some data as :
Mu=100

Sigma=15

X=mu+sigma*numpy.random.randn(10000)
Write a program to plot this data on a horizontal histogram with
this data.
Write SQL queries for the following questions based on the given 22-24
20. table ‘EMPLOYEE’

Write SQL queries for the following questions based on the given 25-28
21. table ‘STU’:
PRACTICAL NO.1
1.Write Python program to create a pandas series to store 5 student’s percentage
using dictionary and print all the elements that are above 75 percentage.

SOURCE CODE :

OUTPUT:
PRACTICAL NO.2
2. Write a python program to create a series object that stores the initial budget
allocated(70000 /- each) for the four quarters of the year Wtr1, Qtr2, Qtr3, Qtr4.

SOURCE CODE :

OUTPUT:
PRACTICAL NO.3

3. Write a python program to create a series object that stores the


employee name as index and salary as value.

SOURCE CODE :

OUTPUT :
PRACTICAL NO.4

4. Consider the series object s13 that stores the contribution of each section as
shown below
A 6700

B 5600

C 5000

D 5200

Write code to modify the amount of section ‘A’ as 7600 and for section ‘C’ and ‘D’ as 7000.Print
the changed object.

SOURCE CODE:

OUTPUT:
PRACTICAL NO.5

5.Write a program to create a data series and sort the values of the
series object in ascending order of its values.

SOURCE CODE:

OUTPUT:
PRACTICAL NO.6
6. Write program to perform the following mathematical operations on two series
objects. I) Addition ii) subtraction iii) Multiplication iv) Division

SOURCE CODE:

OUTPUT:
PRACTICAL NO.7
7. Write a program to create a Series using list of marks of 15 students and display
First 5 student’s marks and last 3 student’s marks from series object.

SOURCE CODE:
OUTPUT:

PRACTICAL NO.8
8. Write a program to create a panda’s dataframe for the following table:

Name Age
Stud1 Shivam 21
Stud2 Pankaj 23
Stud3 Vikas 22

SOURCE CODE:
OUTPUT:

PRACTICAL NO.9
9. Given a DataFrame df :

Name Age Weight


0 15 Arnav 42
1 22 Charles 75
2 35 Ankita 66
Write a program to display only the weight of first and third rows.

SOURCE CODE:

OUTPUT:
PRACTICAL NO.10
10. Write a program to create pandas dataframe DF for the above table and perform the
following operations :

i) Insert a new column gender with values as [‘m’,’m’,’f’]

ii) Delete the row details of 2 from DF.

SOURCE CODE:

OUTPUT:
PRACTICAL NO.11
11.Write a program to create a pandas dataframe called df for the following table using
dictionary of list and display the details of students whose percentage is more than 85.

St_name Degree Percentage


0 Kunisha MBA 80
1 Sahib MCA 85
2 Kabir M.Ed 95
4 Rudra M.Sc 76
5 Shaurya MCA 84

SOURCE CODE:

OUTPUT:
PRACTICAL NO.12
12. Write a program to create pandas dataframe Student for the above table and
demonstrate iterrows and iteritems.

SOURCE CODE:

OUTPUT:
PRACTICAL NO.13
13. Create a DataFrame of your own choice taking some negative values also. Write a
program to replace all negative values by 0.

SOURCE CODE:
OUTPUT:

PRACTICAL NO.14
14. Write a python program to create a dataframe using dictionary of list and display the
following attributes of the dataframe : i) index ii) column ii) axes iv) dimension

SOURCE CODE:
OUTPUT:

PRACTICAL NO.15
15. Write a python program to store the details of Employees such as Employee number,
name, salary into Employee.csv file. Also write a code to read all the details from the
csv file.
SOURCE CODE:

OUTPUT:

PRACTICAL NO.16
16. Write a python program to plot a line chart to depict the changing weekly tomato and
cabbage prices for 5 weeks. Also give appropriate axes label, title and keep marker
style as diamond and marker edge color as ‘red’ for tomato.

SOURCE CODE:
OUTPUT:

PRACTICAL NO.17
17. Write a python program to create a dataframe for subject wise average, save it to a
CSV file. Draw a barchart with a width of each bar as 0.25. Specify different color of
each bar with proper title and axes label.

SOURCE CODE:
OUTPUT:

PRACTICAL NO.18
18. Write a program to plot a multiple bar chart from CSV file for subject wise scores of
class A, class B and class C. Give approprite label, title and color represent each chart
and subjects.
SOURCE CODE:

OUTPUT:

PRACTICAL NO.19
19. Prof. Anupam is doing some research in the field of Environment. For some
plotting purposes, he has generated some data as :

Mu=100

Sigma=15

X=mu+sigma*numpy.random.randn(10000)
Write a program to plot this data on a horizontal histogram with this data.

SOURCE CODE:

OUTPUT:
PRACTICAL NO.20
20. Write SQL queries for the following questions based on the given table
‘EMPLOYEE’ :

Empid Name Gender Age Dept DOJ Salary City


1 Manoj M 25 Sales 2015-06 25000 Chennai
-08
2 Sushma F 29 Marketing 2015-09 25000 Chennai
-26
3 Seema F 27 Finance 2018-08 22000 Bangalore
-09
4 Suman F 31 Sales 2014-03 30000 Mumbai
-23
5 Arun M 28 Marketing 2020-04 18000 Null
-23
6 Praveen M 26 Null 2017-02 27000 Bangalore
-24
7 Manish M 32 Finance 2014-05 25000 Goa
-06

a) create a database name School.

b) create the above table name Employee.


c) insert data into the table.

d) list names of employees in descending order


e) calculate and display minimum and maximum salary of Employees

f) display sum of salary of employees grouped by department wise.


PRACTICAL NO.21

21. Write SQL queries for the following questions based on the given table ‘STU’:

1 Arun M 16 CS 2010-01-10 97.8


2 Ankit M 17 IP 2012-06-24 95.2

3 Anu F 15 Hindi 2011-02-12 81

4 Bala F 17 IP 2015-07-01 75.5

5 Charan M 17 Hindi 2015-06-27 92.1

6 Deepa F 16 History 2014-06-27 60.5

7 Dinesh M 15 CS 2012-08-25 82

a) Display square of age of all male students.

b) Display student name and percentage in round figure.

c) Display department names in lower case letter.


d) Display department names and its respective number of characters in dept column.

e) Display first 2 characters of the column Name.


f) Display names of all students and extract 5 characters from the 3rd position of the name
field.

g) Select name, month(DOA) from student.


h) Display joining year of IP students.

i) Display name of students who joined in the month of June.

You might also like