Ip Practical File
Ip Practical File
Session : 2024-2025
INFORMATICS PRACTICES
Code: 065
Practical file
Submitted by : JOY
Submitted to : RITU KAUSHIK
Class : 12th Commer ce
Roll no. :
ACKNOWLEDGEMENT
JOY
CERTIFICATE
2 Data visualization :
16 Plot following data on line chart and follow the given instructions:
Day Monday Tuesday Wednesday Thursday Friday
Income 510 350 475 580 600
17 Consider the following data of a medical store and plot the data on
the line chart and Customize the chart as you wish:
Month Masks Sanitizer Hand wash
March 1500 4400 6500
April 3500 4500 5000
May 6500 5500 5800
June 6700 6000 6300
July 6000 5600 6200
August 6800 6300 4500
18 Use above data and subplot sanitizer data and handwash data.
19 Display following bowling figures through bar chart:
Overs Runs
1 6
2 18
3 10
4 5
3 Mysql Queries :
Consider the given table and write given queries :
• To join product and company and display in the tabular form
like - <pname> manufactured by <company>
• Convert all product name into capital
• Display the cube of products quantity more than or 100
• Divide the price by 3 and display the result with 1 fraction digit
for the price of more than 40,000.
• Display pname (last four letters only), qty, price with 2 decimal
points and company for price in between 30000 to 80000.
• Display maximum price of products
• Display the total quantities of all products
• Display the average price of LED TV and Apple products
• Find the difference between maximum price and minimum
price from the table.
• Display unique Products from the table.
• Count the unique company from products.
• Display the product number, product name and company in the
descending order of their price.
• Display product minimum price for each company.
• Display product number and product names in their ascending
order of names.
• Display maximum price of products manufactured by apple.
1. Data handling using python:
1. Create a series of these numbers:
33,55,65,29,19,23.
Find the sum of those values which are ending with 3 or 5.
Code:
Output:
2. Create a series of 10 numbers starting with 41 and with the increment of 3. Now add
7 all odd values and subtract 3 in even values. Reprint the updated series.
Code:
Output:
3. Create a series of 10 numbers. Change the value of all the elements those values are
multiples of 4.
Code:
Output:
4. Create a series and print the top 3 elements using the head function.
Code:
Output:
5. Create a series and print the bottom 3 elements using the tail function.
Code:
6. Create a series with these numbers: 21, 51, 71, 31, 12. Exchange all these
values of series by shifting each of them one to one position before and by
shifting the first value to last position..
Code:
Output:
8. Create a dataframe players using a list of names and scores of the previous three
matches. (Using Nested list)
Code:
Output:
9. Create a dataframe countries using a dictionary which stored country name, capitals
and populations of the country.
Code:
Output:
10. Iterate dataframe created in question no. 8 by its rows.
Code:
Output:
11. Print scores of previous two matches along with their names using iterrows
function. (Use dataframe created in question 8)
Code:
Output:
12. Make a total of score from the dataframe players and display their rank according
the their scores.
Code:
Output:
13. Print the batsman name along with runs scored in Test and T20 using column
names and dot notation.
Code:
Output:
14. Display the Batsman name along with runs scored in ODI using loc.
Code:
Output:
Output:
17. Consider the following data of a medical store and plot the data on the line
chart and Customize the chart as you wish:
Month Masks Sanitizer Hand wash
March 1500 4400 6500
April 3500 4500 5000
May 6500 5500 5800
June 6700 6000 6300
July 6000 5600 6200
August 6800 6300 4500
Code:
Output:
18. Use above data and subplot sanitizer data and handwash data.
Code:
Output:
Overs Runs
1 6
2 18
3 10
4 5
Code:
Output
DATABASE QUERY USING MySQL
• Create the following table products and write queries given below:
Table: Products
Constraints:
1. Pcode – Primary Key
2. Pname – Not Null
Create table command:
1. To join product and company and display in tabular form like - <pname>
manufatured by <company>
2. Convert all product name into capital
3. Display the cube of products quantity for more than or 100 in quantity.
4. Divide the price by 3 and display the result with 1 fraction digit for price of
more than 40,000.
5. Display pname (last four letters only), qty, price with 2 decimal points and
company for price in between 30000 to 80000.
Display maximum price of products
8. Find the difference between maximum price and minimum price from the
table.
11. Display the product number, product name and company in the descending
order of their price.
13. Display product number and product names in their ascending order of
names.
14. Display maximum price of products manufactured by apple.