Class Xii Ip Practical File
Class Xii Ip Practical File
INDEX
Sr. Date of Data of
Name of the Experiment/Activity
No. Experiment Submission
Database query using SQL
1. Mathematical, String, Date and time functions in
SQL
2. Aggregate functions ,Group by ,order by query in
SQL
Data Structure in Pandas- Series
3. Menu driven program to create a pandas
series from a dictionary, ndarray and list.
4. Menu driven program to print all the elements
that are at, above & below 25th, 50th and
75th percentile.
5. Program to calculate maximum sales and total
sales using Series.
6. Write a program to perform various operations on
Pandas Series.
7. Program to perform selection, indexing and
slicing operation on Series
8. Program to create dataframe using 2D dictionary,
2D array , Series and another dataframe
9. Program to add and delete of column and row in
Dataframe.
10. Program to iterate over a Dataframe using
1
1) Display Salesman name , bonus after rounding off to zero decimal places.
Select SNAME, round(BONUS,0) from SALESMAN;
2) Display name, total salary of all salesman after addition of salary and
bonus and truncate it to 1 decimal places.
Select sname, truncate((SALARY+BONUS),1) from SALESMAN;
3
Page
3) Display remainder of salary and bonus of Salesman whose SNO starting
with ‘A’
Select MOD(SALARY,BONUS) from SALESMAN where SNO like ’A%’;
4
Page
6) Display last 5 characters of name of SALESMAN.
Select sname, right(Sname,5) from SALESMAN;
7
Page
1. Display the average price of each type of vehicle having quantity more than
20.
Select Type, avg(price) from vehicle where qty>20 group by Type;
8
Page
9
Page
6. Display average price of all type of vehicles.
Select type,avg(price) from vehicle group by type;
10
Page
9. Display details of all vehicles in ascending order of their price.
Select * from vehicle order by price asc;
11
Page
Practical 3-Write a menu driven program to create a pandas series
from a dictionary, ndarray and list.
Solution:
12
Page
13
14
Page
Output:
15
Page
Practical 5:
Write a program that stores the sales of 5 cars for each month in 12
Series objects. The program should display:
1) Item wise total yearly Sales
2) Maximum Sales of item made in a year
3) Maximum Sales for individual items
4) Maximum Sales of item made in a months.
Output:
16
Page
17
Page
Output:
18
Page
19
Page
20
Page
Output:
21
Page
22
Page
23
Page
Output:
24
Page
Solution:
25
Page
Output:
26
Page
27
Page
Output:
28
Page
29
Page
Output:
30
Page
31
Page
32
Page
Output:
33
Page
34
Page
Output:
35
Page
36
Page
37
Page
Output:
38
Page
39
Page
Output:
41
Page
Output:
42
Page
Practical 17-Write a program to draw line chart depicting the prices of the apps and
download of the apps.
Solution:
43
Page
Prepared by: Mrs. Shruti Srivastava, PGT (CS), KV ONGC Panvel
P
Output:
44
Page
Prepared by: Mrs. Shruti Srivastava, PGT (CS), KV ONGC Panvel
P
Practical 18-Given the school result data, Plot bar graph using function of
Dataframe for subject wise analysis of performance of the students. Solution:
45
Page
Prepared by: Mrs. Shruti Srivastava, PGT (CS), KV ONGC Panvel
P
Output:
46
Page
Prepared by: Mrs. Shruti Srivastava, PGT (CS), KV ONGC Panvel
P
Practical 19-Write a program to create a bar chart plotting from the columns of
DataFrame.
Solution:
47
Page
Prepared by: Mrs. Shruti Srivastava, PGT (CS), KV ONGC Panvel
P
Output:
48
Page
Prepared by: Mrs. Shruti Srivastava, PGT (CS), KV ONGC Panvel
P
49
Page
Output:
50
Page
51
Page