Practical 2023
Practical 2023
Practical 2023
index values
viii 180
ix 200
x NaN
xi 150
xii 250
Write a program in Python Pandas to create the series.(Where
viii,ix,x,..xii consider as indexes of the series)
Answer the following –
(i) To display the shape of the S1.
(ii) To display first two elements of S1.
(iii) To display total non-NaN elements of S1.
(iv) To display the elements of S1 is descending order
(v) To display 2nd element of S1.
(vi)To display the dimension of S1.
3. Practical file 5
4.Project Work 5
5. Viva-Voce 5
SET-B
Subject- Informatics Practices (065)
Date of Exam-13/01/2024
M.Marks-30 Time-3Hrs
SET-C
Subject- Informatics Practices (065)
Date of Exam-13/01/2023
M.Marks-30 Time-3Hrs
1. Consider the given DataFrame ‘df’: 8
Name Marks
0 Deepjyoti 89
1 Dishant 92
2 Rahul 96
3 Alhina 93
4 Ankita 82
Write a program in Python Pandas to create the above
DataFrame-df
Write suitable Python statements for the following:
i. Add a column called Result with the following
data: [‘A’,’A+’,’A++’,’B+’,’A+’]. ii. Add a new
student named ‘Rohit' having marks 21 and
result-‘B+’.
iii. Display column-Name
iv. Display 2ndrow.
v. Delete the 2ndrow.
2.Write command to create the following table EMP : 7
Table-EMP
EmpNo EName Salary Job
101 Raj Kumar 5000 Clerk
102 Bina Rai 12000 Manager
103 Amir Khan 6000 Salesman
104 Kuldeep Dutta 6000 Salesman
105 Jatin Jain 7000 Accountant
106 Mita Singh 6000 Clerk
107 Vimal Jain 10000 Manager
Write SQLcommands to:
a. Display the lowest salary of Manager.
b. Count the total number of employee in each
job where total number is above 1 .
c. Display the average salary of Manager.
d. Display 4 letters of EName staring from 2nd letter
e. Display all EName and their length where length is less
than 9.
3. Practical file 5
4.Project Work 5
5. Viva-Voce
5
SET-D
Subject- Informatics Practices (065)
Class-XII
M.Marks-30 Time-2Hrs
1. Write a program to create a dataframe a list
containing dictionaries of the exam performances of five
students- 8
Name Eng Acct Eco Bst IP
Pankaj 67 78 89 76 90
Rekha 98 87 84 89 93
Ajay 98 56 49 87 76
Raju 34 51 76 54 67
Suraj 78 54 45 63 61
Perform the following-
IP 90 93 76 67 61
(i) Add the another column E:[56,78,98,45,78]
(ii) Display from 1stto 3rdrows
(iii)Change the column Bst to BStudies
(iv) Display the columns from Name to Eco.
(v) Display the rows in order of Eng
2. Table: Employee
No Name Salary Zone Age Grade Dept
1 Mukul 30000 West 28 A 10
2 kritika 35000 Centre 30 A 10
3 Naveen 32000 West 40 20
4 uday 38000 North 38 c 30
5 Nupur 32000 East 26 20
6 Mokesh 37000 South 28 B 10
7 Shelly 36000 North 26 A 30
Create the above table-Employee and insert all the rows.
Based on this tables write SQL statements for the
following queries: - 7
a) To display employee name and their length.
b) To display the average salary of all the employees who are
from West zone.
c) To count zone wise no of employees where no of
employees less than 2.
d) To display department wise highest, lowest ,total and
average salary.
e) To display zone wise average salary where average salary is
above 35000 in descending order of zone name.
3. Practical file 5
4.Project Work 5
5. Viva-Voce 5
SET-E
Subject- Informatics Practices (065)
Class-XII
M.Marks-30 Time-2Hrs
1. Write a program in Python Pandas to create the
following DataFrame batsman from a Dictionary: 8
2. Table: Employee 7
3. Practical file 5
4.Project Work 5
5. Viva-Voce 5