XII IP Practical File - 2023-24upto June

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Informatics Practices

Practical file
2023-24
SUBMITTED BY
Roll no:
Name :
Class : XII
Submitted To:

Mr. SWAPAN KAPURIA Dr. VANDANA TANDON

(PGT. Comp. Sc.) (Principal)


CERTIFICATE

This is to certify that __________ of class XII _____


bearing CBSE roll no___________ has successfully
completed his/her
“INFORMATICS PRACTICE” practical file for the
session 2022-23. The student has taken proper care and
utmost sincerity in completion of his/her practical file.
All the works related to the practical file was done by
the candidate.

I certify that this practical is up to my expectation and


as per the guidance issued by the CBSE.

Mr. SWAPAN KAPURIA


PGT Computer Sc.
Index
No Name of Practical Date Page Sign of
. no. the
Teacher
1. Create a pandas series from a dictionary of values. Display 3 top
rows using head ()

2. Create a pandas Series from an ndarray of values. Display 3 Rows


from bottom using tail()
3. Create a series and show different types of selection like
i. retrieve 1st 3 rows
ii. Slice upto and including a particular label
4.
Draw the following bar graph representing the number of students
in each class.

5. Create a series having values 3,4,1,10,9,8,7. Arrange the data in the


series in Ascending order and also in Descending order.

6. Create a Series using a ndarray of values and show mean, median,


maximum value, minimum value, mode.

7. Create a Data Frame quarterly sales where each row contains the
item category, item name, and expenditure. Group the rows by the
category, and print the total expenditure per category.
8. Create a data frame for examination result and display row labels,
column labels data types of each column and the dimensions
9. Filter out rows based on different criteria such as duplicate rows..

10. Find the sum of each column, or find the column with the lowest
mean.
11. Do the following :
1.locate the 3 largest values in a dataframe
2. subtract the mean of a row from each element of the row in
a dataframe.
3.replace all negative values in a dataframe with a 0.
4. replace all missing values in a dataframe with a 999.

12
A dictionary Grade contains the following data:
Grade={'Name':['Rashmi', 'Harsh', 'Ganesh', 'Priya',
'Vivek', 'Anita', 'karthik'], 'Grade':['A1', 'A2', 'B1', 'A1', 'B2',
'A2', 'A1']}
Write statements for the following:
a. Create dataFrame called GR.
b. Find the output of GR.iloc[0:5] and GR[0:5}
c. Add a column called percentage with following data:
[92, 89, None, 95, 68, None, 93]
d. Rearrange the columns as Name, Percentage and
grade
e. Drop the column (i.e. Grade) by name
f. Delete the 3rd and 5th rows
g. What does the following will do?
i. Gr.drop(0, axis=0)
ii. Gr.drop(0, axis="index")
iii. Gr.drop([0, 1, 2, 3], axis=0

13. .Importing and exporting data between pandas and CSV file

14. Implement Describe method on a dataframe


display its output.
15. Write a program to iterate over a dataframe
containing names and marks, which then
calculates grades as per marks and adds them to
the grade column.
Marks Grade
Marks>=90 A+
Marks 70-90 A
Marks 60-69 B
Marks 50-59 C
Marks 40-49 D
Marks <40 F
16. Consider a DataFrame ndf as shown below:

Name Sex position City Age Project Budget


0 Rabia F Manager banglore 30 13 48
1 Evan M Programmer Ndelhi 27 17 13
2 Jia F Manager Chennai 32 16 32
3 Lalit M Manager Mumbai 40 20 21
4 Jaspreet M Programmer Chennai 28 21 17
5 Suji F Programmer bangalore 32 14 10

i. Create the above dataframe and do the


following
ii. Print the details of the youngest employee
in the dataframe
iii. Print the details of the employee handling
the maximum number of projects
iv. Print the average budget allotted

17. Create the following data frame using list


Fruits Pulses Rice Wheat
Tripura 44.1 23.2 814.6 0.5
Gujrat 11950.0 818.0 1930.0 2737.0
Punjab 7152.0 33.0 11586.2 16440.5
Uttar_P 140169.2 2184.4 13754.0 30056.0
Andhra_P 7830.0 931.0 7452.4 NaN
Kerala 113.1 1.7 2604.8 NaN
i. Total Production for each state
ii. Total production for each item type
iii. How many states produce Wheat?
iv. Print details of the state with maximum
Rice production
v. Use the libraries as required
18. Given a DataFrame mks2 storing marks of 10
students in a class in five subjects as shown below:
1 2 3 4 5 6 7 8 9 10
Acct 99 94 81 70 88 90 41 61 42 68
Eco 94 94 72 67 82 81 36 54 42 67
Eng 95 89 71 69 82 79 51 60 45 66
IP 94 87 79 65 89 81 42 63 43 64
Math 97 100 65 69 86 84 40 55 40 60
Write a program to measure the subject wise
performance of the students, so that the teacher
gets to know the following details (for each subject)
25 percentile students scored below?
50 percentile students scored below?
75 percentile students scored below?
Also separately list the performance for the
subject ‘IP’
19. Given the school result data, analyse the
performance of the students on different parameters,
e.g subject wise or class wise.
20. For the Data frames created above, analyze and plot
appropriate charts with title and legend.
21. Write a program in Python Pandas to create the following
DataFrame batsman from a Dictionary: B_NO Name Score1
Score2 1 Sunil Pillai 90 80 2 Gaurav Sharma 65 45 3 Piyush
Goel 70 90 4 Kartik Thakur 80 76 Perform the following
operations on the DataFrame : 1)Add both the scores of a
batsman and assign to column “Total” 2)Display the highest
score in both Score1 and Score2 of the DataFrame
22. Generally ten different prices of a stock are stored.
However, for ABC Co only 5 prices are available for
a dat:[74.25, 76.06, 69.5, 72.55, 81.5] Write a
program to create a bar chart with the given prices:
• The graph should be plotted between the
limits -2 to 10 on x-axis
• There should be tick for every potted point
23. Three days prices are available in three lists as
shown below:
Day1=[74.25, 76.06, 69.5, 72.55]
Day2=[56.03, 68.71,62.89, 56.42]
Day3=[59.3, 72.07, 77.65, 66.46]
Write a program to create filled lineplot from this
data with their unique labels.

Note:
1. Complete this file in holidays
2. Write all the cycle test and PT1 test question answer in your copy.

J jjjjj

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy