0% found this document useful (0 votes)
14 views14 pages

Practicle File

Class 12practical file
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views14 pages

Practicle File

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

Q1.

WRITE A PROGRAM TO CALCULATE AREA OF CIRCLE


[A=PIE2],AREA OF SQUARE [A=a*a],AREA OF RECTANGLE
[A=l*b]

CODE:

OUTPUT:
Q2.write a pandas program to show the attributes of
series
CODE:

OUTPUT:
Q3.write a pandas program to find out the biggest and
smallest three area from given series that store the area
of some states in km2 (head\tail).
CODE:

OUTPUT:

Q4.write a menu driven pandas program to sort data


series according to the values,index.
CODE:
OUTPUT:-

Q5.write a pandas program to create data series andthen


change the index of the series object in any random
series.
CODE:-
OUTPUT:-

Q6.write a pandas program to add,subtract,multiply and


divide two pandas series.
CODE:-
OUTPUT:-

Q7.write a pandas program to population of four metro


cities of India and AvgIncome,calculate income per capita
for each of these metro cities.
CODE:-
OUTPUT:-

Q8.write a python program to create and perform


attributes of dataframe on it.
CODE:-
OUTPUT:-

Q9.write a python program to perform head and tail


function on dataframe.
CODE:-
OUTPUT:-

Q10.write a python program to create dataframe and


perform Boolean indexing on it.
CODE:-
OUTPUT:-

Q11.write a python program to create the dataframe and


selecting column/rows using loc and iloc function
CODE:-

OUTPUT:-

Q12. Write a program to plot a bar chart in python to


display the result of a school for five consecutive years.
Q13.Create multiline chart on common plot where three
data range plotted on same chart.
Code:
output:

Q14. A Survey gathers heights amd weight of 50


participant and recorded the participants
age.Histogram().
Code:
Output:

You might also like