IP Practical File 2024-25
IP Practical File 2024-25
1.Create a student table with the Student ID, Name and Marks as
attributes where the Student ID is the primary key.
Query:
Query:
Output:
Output:
4. Write SQL command to get the details of student with marks more than
90
Query:
5. Write SQL command to find min, max, sum and average of marks in a
student table
Query:
6. Write SQL query studentid and marks from the table student in
descending order of the marks
Query:
7. Write SQL query to find the total number of customers from each
country in the table customers (custid, custname, country) using group by
clause
Query:
Output:
9.Write SQL command to display maximum price of the product
Query:
Output:
Output:
Output:
12.Write SQL command to display product number, product name,
company and price in the descending order of their price
Query:
Output:
Output:
14.Write SQL command to display product name and lowest price of
product manufactured by LG
Query:
Output:
Output:
Python Codes:
Output:
2. Write a python program to print all the elements that are above 75th
percentile in a given series.
Code:
Output:
3. Write python program to create data frame “Quarter Sales” where each
row contains item categories, item name and expenditure. Group the rows
by the category and print the total expenditure per category
Code:
Output:
4. Write python program to create data frame for extermination of result
and display row labels , column labels , data types of each columns and
dimensions and shape of data frame
Code:
Output:
5. Filter out rows based on different criteria such as duplicate rows
Code:
Output:
Output:
8. Write a python program to create series of given numbers (33, 55, 65, 29,
19, 23). Find the sum of those values which are ending with 3 or 5
Code:
Output:
Output:
11. Write a python program to create a series of 5 elements and print the
top 3 elements using the head function
Code:
Output:
13. Write a python a program to create a data frame of players using list of
names and scores of previous 3 matches. Use above data frame and make
total of scores each player
Code:
Output:
14. Write a python program to plot following Data on line chart and with
the following specifications
Day Monday Tuesday Wednesday Thursday Friday Saturday Sunday
Income 510 350 475 580 600 700 850
Specifications:
1. Write title for the chart as “The Weekly Income Report”
2. Titles of both axis
3. Display legend
4. Color for line
5. Display dashed line
6. Diamond style markers on data point
Code:
Output:
15. Consider the following data of sales and plot the data on line chart with
the following specifications
Month March April May June July August
IPhone 50 35 47 58 60 70
IPad 60 67 46 85 72 68
Smart 55 85 90 72 86 94
Specifications:
1. Write title for chart ‘Karmanya Apple Store’
2. Use dashed linestyle
3. Use a different marker for each line
4. Usa a different color of your choice for each line
5. Specify line width as 4
6. Display legend
7. Use appropriate labels for both axis
Code:
Output:
16. Consider the following data of a cricket match and plot bar chart
Overs 1 2 3 4 5
Runs 8 15 25 6 30
Code:
Output:
17. Consider the following data of players. Make a Bar graph comparing
their career runs.
Format T20I ODI Test
Sachin 10 18426 15921
Virat 4188 13906 9040
Code:
Output: