0% found this document useful (0 votes)
4 views7 pages

Average Changed

Uploaded by

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

Average Changed

Uploaded by

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

import pandas as pd

import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[1:12, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 1999')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[14:25, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2000')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[25:37, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2001')
plt.show()
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[37:47, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2002')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[47:59, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2003')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[59:71, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2004')
plt.show()
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[71:81, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2005')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[81:93, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2006')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[93:104, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2007')
plt.show()
import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[104:127:2, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2008')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[128:140, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2009')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[140:152, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2010')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[152:164, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2011')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[164:176, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2012')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[176:188, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2013')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[188:200, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2014')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[200:212, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2015')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[212:224, 1:]


data = data.apply(lambda x: x.replace(' ', '0').astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2016')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[224:236, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2017')
plt.show()

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('Temperature 1999 - 2018.csv')

data = df.iloc[236:246, 1:]


data = data.apply(lambda x: x.astype(float))

average_temperature = data.mean()

months = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']

plt.plot(months, list(average_temperature)[:12])
plt.xlabel('Month')
plt.ylabel('Average Temperature')
plt.title('Average Temperature per Month - 2018')
plt.show()

You might also like