0% found this document useful (0 votes)
7 views

PR

Uploaded by

fhquwron
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)
7 views

PR

Uploaded by

fhquwron
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/ 3

import pandas as pd

import matplotlib.pyplot as plt


import numpy as np
def read_from_csv():
df=pd.read_csv("C:\\Users\\mukesh ji\\Desktop\\
delhi.data.csv")
b=pd.read_csv("C:\\Users\\mukesh ji\\Desktop\\
cont.aqi.csv")
c=pd.read_csv("C:\\Users\\mukesh ji\\Desktop\\redn.csv")
print(df)
print(b)
print(c)
return [df,b,c]
def line(df):
plt.plot(df['month'],df['2021'],color="green")
plt.plot(df['month'],df['2022'],color="blue")
plt.plot(df['month'],df['2023'],color="orange")
plt.xlabel("months")
plt.ylabel("aqi range")
plt.title("air quality analisation of delhi")
plt.show()
def bar1(b):
x=np.arange(len(Df.Countries))
plt.bar(x-0.3,Df['2021'],color='Yellow',width=0.3)
plt.bar(x+0.0,Df['2020'],color='Red',width=0.3)
plt.bar(x+0.3,Df['2022'],color='Blue',width=0.3)
plt.xlabel('Countries')
plt.ylabel('2020,2021,2022')
plt.title('Air Quality Index')
plt.legend()
plt.show()
def bar2(c):
x=np.arange(len(c.Cities))
plt.bar(x-0.3,c[ALockdown],label='AQI before
lockdown',color='blue',width=0.3)
plt.bar(x-0.0,c[BLockdown],label='AQI after
lockdown',color='cyan',width=0.3)

plt.bar(x+0.3,c[Reduction],label='Reduction',color='grey',width=
0.3)
plt.xlabel('Indian Cities')
plt.ylabel('AQI Values')
plt.title('AQI analysis before and after lockdown')
plt.legend()
plt.show()

You might also like