Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
133 views23 pages

IP Practical File

1. The document contains a practical record file submitted by a class 12 student for their Informatics Practices examination. 2. It includes an acknowledgement, certificate, and 15 programming exercises to be completed as part of the practical evaluation. 3. The exercises involve creating Pandas series and DataFrames, plotting data in line and bar charts, and customizing various chart properties like colors, styles, labels and legends.

Uploaded by

Deepanshu Fulara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views23 pages

IP Practical File

1. The document contains a practical record file submitted by a class 12 student for their Informatics Practices examination. 2. It includes an acknowledgement, certificate, and 15 programming exercises to be completed as part of the practical evaluation. 3. The exercises involve creating Pandas series and DataFrames, plotting data in line and bar charts, and customizing various chart properties like colors, styles, labels and legends.

Uploaded by

Deepanshu Fulara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

CENTRAL BOARD OF SECONDARY EDUCATION

School Name- KVM PUBLIC SCHOOL,Haldwani

A TERM 1 PRACTICAL RECORD FILE IS SUBMITTED TO


DEPARTMENT OF INFORMATICS PRACTICES FOR THE
PARTIAL FULLFILLMENT OF AISSCE EXAMINATION SESSION –
2021-22.

• SUBMITTED BY: Ashwin Pandey


• HOD(IP):Mrs. Sangeeta Belwal Mam
• CLASS: 12TH A
• ROLL NO: 05
ACKNOWLEDGEMENT
I wish to express my deep sense of gratitude and
indebtedness to our learned teacher Mrs. Sangeeta
Belwal Mam, PGT COMPUTER SCIENCE, [KVM PUBLIC
CHOOL] for his invaluable help, advice and guidance in
the preparation of this project.
I am also greatly indebted to our principal Mr.
Praveen Pant and school authorities for providing me
with the facilities and requisite laboratory conditions
for making this practical file.
I also extend my thanks to a number of teachers,my
classmates and friends who helped me to complete
this practical file successfully.

ASHWIN PANDEY
12TH A
CERTIFICATE
This is to certify that ASHWIN PANDEY student of
Class XII,KVM Public school has completed the
Term I - PRACTICAL FILE during the academic year
2021-22 towards partial fulfillment of credit for the
Informatics Practices practical evaluation of CBSE
and submitted satisfactory report, as compiled in
the following pages, under my supervision.
Total number of practical certified are : 15.

External Examiner Signature Internal Examiner Signature


CONTENTS
No. Practical Signature
1 Write a program to generate a series of float numbers from
41.0 to 60.0 with an increment of 2.5 each.
2 Write a program to generate a series of 10 numbers with a
scalar value of 44.
3 Create a panda’s series from a dictionary of values and a
ndarray.
4 Given a Series, print all the elements that are above the
75th percentile.
5 Create a data frame for examination results and display row
labels, column labels data types of each column and the
dimensions.
6 Create a dataframe and iterate them over rows.

7 Create a dataframe and print it along with their index using


iteritems().
8 Create the following DataFrame Sales containing year wise
sales figures for five salespersons in INR. Use the years as
column labels, and salesperson names.
9 Consider above dataframe and write code to do the
following: 1. Display the last two rows of Sales. 2. Display
the first two columns of Sales.
10 Use above dataframe and do the following:
1. Change the DataFrame Sales such that it becomes its
transpose.
2. Display the sales made by all sales persons in the year
2018.
3. Display the sales made by Kapil and Mohini in the year
2019 and 2020.
4. Add data to Sales for salesman Nirali where the sales
made are
5. [221, 178, 165, 177, 210] in the years [2018, 2019, 2020,
2021] respectively.
6. Delete the data for the year 2018 from the DataFrame
Sales.
7. Delete the data for sales man Shikhar from the
DataFrame Sales.
8. Change the name of the salesperson Kamini to Rani and
Kapil to Anil.
9. Update the sale made by Mohini in 118 to 150 in 2018.
11 Plot the following data on a line chart and customize chart
according to below-given instructions:

1. Write a title for the chart "The Monthly Sales Report"


2. Write the appropriate titles of both the axes
3. Write code to Display legends
4. Display blue color for the line
5. Use the line style - dashed
6. Display diamond style markers on data points
12 Pratyush Garments has recorded the following data into
their register for their income from cotton clothes and
jeans. Plot them on the line chart.

Apply following customization to the line chart.


1. Write a title for the chart "The Weekly Garment
Orders".
2. Write the appropriate titles of both the axes.
3. Write code to Display legends.
4. Display your choice of colors for both the lines cotton
and jeans.
5. Use the line style - dotted for cotton and dashdot for
jeans.
6. Display plus markers on cotton and x markers of jeans.
13 Observe the given data for monthly views of one of the
youtube channels for 6 months. Plot them on the line chart
Apply the following customizations to the chart:

1. Give the title for the chart - "Youtube Stats"


2. Use the "Month" label for X-Axis and "Views" for Y-Axis.
3. Display legends.
4. Use dashed lines with the width 5 point.
5. Use red color for the line.
6. Use dot marker with blue edge color and black fill color.
14 Write a program to plot a range from 1 to 30 with step
value 4. Use following algebraic expression to show data: y
= 5*x+2
15 Display following bowling figures through bar chart:
[1] Write a program to generate a series of float numbers from 41.0 to 60.0 with
an increment of 2.5.

[2] Write a program to generate a series of 10 numbers with a scalar value of 44.
[3] Create a panda’s series from a dictionary of values and a ndarray.

[4] Given a Series, print all the elements that are above the 75th percentile.
[5] Create a data frame for examination results and display row labels, column
labels data types of each column and the dimensions.
[6] Create a dataframe and iterate them over rows.

[7] Create a dataframe and print it along with their index using iteritems().
[8] Create the following DataFrame Sales containing year wise sales figures for
five salespersons in INR. Use the years as column labels, and salesperson names
as row labels. 2018 2019 2020
1. Create the DataFrame.
2. Display the row labels of Sales.
3. Display the column labels of Sales.
4. Display the data types of each column of Sales.
5. Display the dimensions, shape, size and values of Sales.
[9] Consider above dataframe and write code to do the following:
1. Display the last two rows of Sales.
2. Display the first two columns of Sales.
[10] Use above (Question 9) dataframe and do the following:
1. Change the DataFrame Sales such that it becomes its transpose.
2. Display the sales made by all sales persons in the year 2018.
3. Display the sales made by Kapil and Mohini in the year 2019 and 2020.
4. Add data to Sales for salesman Nirali where the sales made are o [221, 178,
165, 177, 210] in the years [2018, 2019, 2020, 2021] respectively
5. Delete the data for the year 2018 from the DataFrame Sales.
6. Delete the data for sales man Shikhar from the DataFrame Sales.
7. Change the name of the salesperson Kamini to Rani and Kapil to Anil. 8.
Update the sale made by Mohini in 118 to 150 in 2018.
[11] Plot the following data on a line chart and customize chart according to
below-given instructions:

Weekly Sales Report


1. Write a title for the chart "The Monthly Sales Report"
2. Write the appropriate titles of both the axes
3. Write code to Display legends
4. Display blue color for the line
5. Use the line style - dashed 6. Display diamond style markers on data points
[12] Pratyush Garments has recorded the following data into their register for
their income from cotton clothes and jeans. Plot them on the line chart.

Apply following customization to the line chart.


1. Write a title for the chart "The Weekly Garment Orders".
2. Write the appropriate titles of both the axes.
3. Write code to Display legends.
4. Display your choice of colors for both the lines cotton and jeans.
5. Use the line style - dotted for cotton and dashdot for jeans.
6. Display plus markers on cotton and x markers of jeans.
[13] Observe the given data for monthly views of one of the youtube channels for
6 months. Plot them on the line chart. Apply the following customizations to the
chart:
1. Give the title for the chart - "Youtube Stats"
2. Use the "Month" label for X-Axis and "Views" for Y-Axis.
3. Display legends.
4. Use dashed lines with the width 5 point.
5. Use red color for the line.
6. Use dot marker with blue edge color and black fill color.
import matplotlib.pyplot as pp
mon =['January','February','March','April','May','June']
views = [2500,2100,1700,3500,3000,3800]
pp.plot(mon,views,label='Views
State',color='r',linestyle='dashed', linewidth=4,
marker='o', markerfacecolor='k', markeredgecolor='b')
pp.title("Youtube Stats")
pp.xlabel("Months")
pp.ylabel("Views")
pp.legend() pp.show()
[14] Write a program to plot a range from 1 to 30 with step value 4. Use
following algebraic expression to show data.y = 5*x+2

[15] Display following bowling figures through bar chart:

import matplotlib.pyplot as pp
overs =[1,2,3,4]
runs=[6,18,10,5]
pp.bar(overs,runs,color='m')
pp.xlabel('Overs')
pp.xlabel('Runs')
pp.title('Bowling Spell Analysis')
pp.show()

You might also like