Professional Documents
Culture Documents
SESSION: 2023-24
CLASS - XII
INFORMATICS PRACTICES
(065)
(PYTHON / MYSQL)
Acknowledgement
Certificate
INDEX
S. No. Practical Date Remarks
Kiran 33
Manvendra 48
Saswati NaN
1. Yash 43
Orange Yellow 30 40
Orange Green 19 30
Mango Yellow 25 60
(ii) Add a new row ‘Apple’ containing Red, 40, 190, Kashmiri.
Consider the following data and write python code for points (i) to (v)
Orange Yellow 30 40
Orange Green 19 30
Mango Yellow 25 60
1.
Mango Green 29 120
Id name m1 m2 m3 m4
1Juvaraj Singh 54 14 30 34
2 Virat Kohli 48 37 21 25
3 Rohit Sharma 40 42 38 34
4 Sikhar Dhavan 42 13 34 30
1. 5 Dinesh Kartik 15 10 28 64
(vii) Find all rows with label ‘SDMH’ with all columns.
(xv) Display data of rows AIIMS, SDMH and columns Masks and
Gloves
Write a program to create a the following dataframe and answer the
questions (i) to (v)-
x=[2,4,3,7,5]
y=[23,43,18,20,5]
1. Write code to
DATA = [[5.,42.,28.,18.],[9.,13.,22.,29.],[8.,32.,26.,40.]]
1.
(i) Display legends as Range1,Range2 and Range3.
Write a program to create the histogram for (a) to (g). The data is
given below-
78 72 69 81 63 67 65 73
79 74 71 83 71 79 80 69
Operations:
1. Operations:
Table: EMPLOYEES
Table: EMPSALARY
Table: ITEMS
Table: SPORTS
Table: SPORTS
1. c) Insert the following data into the attributes SCode, SportName and
No. of players respectively in the given table SPORTS.
Practical-1
Write a program in python to create a series Ser1 of numeric data with labels as a,b,c,d,e. Then create a
new series object Ser2, contains squares of each values from Ser1. Display Ser2 values which are greater
than 15.
Sol.
L=[1,2,3,4,5]
import pandas as pd
Ser1=pd.Series(L,index=['a','b','c','d','e'])
print(Ser1)
Ser2=Ser1**2
print(Ser2[Ser2>15])
Output:
a 1
b 2
c 3
d 4
e 5
dtype: int64
d 16
e 25
dtype: int64
Bibliography
KENDRIYA
VIDYALAYA NO.1
SAMBALPUR