0% found this document useful (0 votes)
21 views9 pages

Assignment 3 Informatics Practices

Xnnxnxnxndndnd

Uploaded by

narangbhanu2408
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)
21 views9 pages

Assignment 3 Informatics Practices

Xnnxnxnxndndnd

Uploaded by

narangbhanu2408
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

Assignment 4 Informatics Practices

Akavira kesar XII-B


Q1.

Input

import [Link] as plt

l=[1,2,4,3,0]

[Link](l)

[Link]()

Output

Q2.

Input

import [Link] as plt

import numpy as np

x=[Link](2,11,2)

y=x**2

[Link]("Numbers")

[Link]("Square of numbers")

[Link]("square of given numbers")

[Link](x,y, marker='o')

[Link]()
output

Q3.

Input

import [Link] as plt

year=[1960,1970,1980,1990,2000,2010]

pop_pak=[44.91,58.09,78.07,107.7,138.5,170.6]

pop_in=[449.48,553.57,696.783,870.133,1000.4,1309.1]

[Link]("year")

[Link]("Population")

[Link]("Comparison of population")

[Link](year,pop_in,color="r",label="India")

[Link](year,pop_pak,color="g",marker='o',label="Pakistan")

[Link]()

[Link]()

Output
Q4.

Input

import [Link] as plt

days=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']

t_sold=[2000,2800,3000,2500,2300,2500,1000]

[Link]("Days")

[Link]("Tickets Sold")

[Link]("Tickets sold each day")

[Link](days,t_sold,color="r",marker="+",markersize=10)

[Link]()

[Link]()

Output

Q5.

Input

import [Link] as plt

import pandas as pd

df=pd.read_csv("[Link]")

print(df)

c=df["Day"]

a=df["Min_Temp"]

b=df["Max_Temp"]

[Link]("Temperature in Celcius")

[Link]("Days")

[Link]("Plotting data from csv file")


[Link](c,a,label="Min Temp",marker =".",markeredgecolor="k")

[Link](c,b,label="Max Temp",marker ="x",markeredgecolor="k")

[Link]()

[Link]()

Output

======= RESTART: C:/Users/Akavira kesar/OneDrive/Desktop/IP XII/A-3/[Link] ======

Day Min_Temp Max_Temp

0 1 29.0 44.0

1 2 28.5 43.5

2 3 28.0 43.0

3 4 31.0 44.5

4 5 27.0 42.0

5 6 27.5 42.5

6 7 27.0 43.0

Q6.

Input

import [Link] as plt

L=[4,12,10,2]

L1=['A','B','C','D']

[Link]("Grades")

[Link]("No. of students")

[Link]("Number of students in each grade")

[Link](L1,L)

[Link]()
Output

Q7.

Input

import [Link] as plt

Years=[2015,2016,2017,2018]

perc=[80,80,80,90]

[Link]("Years")

[Link]("Pass percentage")

[Link]("CBSE 2015 to 2018")

[Link](Years,perc)

[Link]()
Output

Q8

Input

import [Link] as plt

patient_age=[4,9,33,44,23,30,37,40,41,41,44,45,51,52,55,60,61,61,62,72,64,68,7,71,72,74,76,77,79,80,82,85]

age_group=[0,10,20,30,40,50,60,70,80,90]

[Link](patient_age,bins=age_group,color='y',edgecolor='b')

[Link]("No. of patients")

[Link]("Age group")

[Link]("Data of covid patients in various ages")

[Link]()

Output
Q9.

Input

import [Link] as plt

ip_marks=[51,57,66,64,63,67,77,74,73,79,78,76,89,87,85,83,99]

marks=[50,60,70,80,90,100]

[Link]("Marks")

[Link]("Frequency of distribution of marks")

[Link]("Bar type histogram of IP marks")

[Link](ip_marks,bins=marks,color='g',label="IP Test Data",edgecolor='b')

[Link]()

[Link]()

Output

Q.10

Input

import [Link] as plt

l=[53,55,61,65,67,68,71,72,73,74,75,76,81,82,83,91,97]

l1=[50,60,70,80,90,100]

[Link]("Marks")

[Link]("Frequency of Distribution Of Marks")

[Link]("Step Type Histogram of IP Marks")

[Link](l,l1,label="IP Test Data",histtype="step")

[Link](rotation=30)
[Link](loc="upper left")

[Link]()

Output

Q.11

Input

import pandas as pd

import [Link] as plt

d={1995:[52,64,78,94],2005:[340,480,688,766],2015:[890,560,1102,889]}

df=[Link](d,index=['a','b','c','d'])

print(df)

l1=df[1995]

l2=df[2005]

l3=df[2015]

x=['a','b','c','d']

[Link]("Users")

[Link]("Values")

[Link]("Multi Range Line Chart")

[Link](x,l1,label="1995",marker=".",markeredgecolor='k')

[Link](x,l2,label="2005",marker=".",markeredgecolor='k')

[Link](x,l3,label="2015",marker=".",markeredgecolor='k')

[Link]()
[Link]()

Output

====== RESTART: C:/Users/Akavira kesar/OneDrive/Desktop/IP XII/A-3/[Link] ======

1995 2005 2015

a 52 340 890

b 64 480 560

c 78 688 1102

d 94 766 889

You might also like