XII IP Practical File - 2023-24upto June
XII IP Practical File - 2023-24upto June
XII IP Practical File - 2023-24upto June
Practical file
2023-24
SUBMITTED BY
Roll no:
Name :
Class : XII
Submitted To:
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
Note:
1. Complete this file in holidays
2. Write all the cycle test and PT1 test question answer in your copy.
J jjjjj