Practical File IP 2025
Practical File IP 2025
…………………………
(Signature)
(Priyanka Pal)
ACKNOWLEDGEMEN
T
I express my gratitude to Mrs. Priyanka
Pal my Informatics Practices teacher and
guide, who guided me through the
practical file and also gave valuable
suggestions and guidance for completing
the practical file. She helped me to
understand the intricate issues involved
in making the file, besides effectively
presenting it. I would also like to thank
my Principal Ms. Tripti Mawri I would also
thank my parents and friends who also
helped me a lot in finalizing the practical
file. My practical file has been a success
only because of their guidance and
support.
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) Display remainder of salary and bonus of Salesman whose SNO starting
with ‘A’
Select MOD(SALARY,BONUS) from SALESMAN where SNO like ’A%’;
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;
Solution:
Output:
Practical 10- Write a program to iterate over a DataFrame
containing names and marks, then calculates grades as per marks
(as per guideline below) and adds them to the grade column.
Marks > =90 Grade A+
Marks 70 – 90 Grade A
Marks 60 – 70 Grade B
Marks 50 – 60 Grade C
Marks 40 – 50 Grade D
Marks < 40 Grade F
Solution:
Output:
Practical 11- Write a program to perform select subsets
from DataFrame using loc, iloc, head( ),tail( ) functions.
Find maximum, minimum values and transpose of
dataframe.
Solution:
Output:
Practical 12-Write a program perform Arithmetic binary operations
(Addition, Subtraction, Multiplication, Division) on dataframe.
Solution:
Output:
Practical 13-Write a program to access and modify the
values in Dataframe.
Solution:
Output:
Program 14- Program for creating Series objects from
Dataframe columns and DataFrame rows.
Solution:
Output:
Practical 15-Write a program to create a DataFrame for
student details and create a CSV file using this DataFrame
and display contents of CSV file.
Solution:
Output: