Professional Documents
Culture Documents
Final - Project - Vatsal - Patel - O
Final - Project - Vatsal - Patel - O
/usr/bin/env python
# coding: utf-8
# In[4]:
# Final Project
plt.subplots_adjust(wspace=1.2, hspace=1.2)
data = pd.read_csv("D:\\LakeCounty_Health.csv")
# first subplot
#Plot graph for ZIP column vs Colorectal Cancer
#subplot divides the main plot into multiple plots so that many graphs can be
plotted together
plt.subplot(3,3,1)
plt.plot(data['ZIP'], data['Colorectal'])
plt.ylabel("Colorectal Cancer")
plt.grid()
# second subplot
plt.subplot(3,3,2)
plt.plot(data['ZIP'],data['Lung_Bronc'])
plt.title("ZIP Vs Lung_Bronc")
#labeling the y axis of a plot
plt.ylabel("Lung_Bronc")
plt.grid()
#third subplot
#Plot graph for ZIP column vs Breast_Can
plt.subplot(3,3,3)
plt.plot(data['ZIP'],data['Breast_Can'])
plt.title("ZIP Vs Breast_Can")
plt.ylabel("Breast_Can")
plt.grid()
#fourth subplot
#Plot graph for ZIP column vs Prostate_C
plt.subplot(3,3,4)
plt.plot(data['ZIP'],data['Prostate_C'])
plt.title("ZIP Vs Prostate_C")
plt.ylabel("Prostate_C")
plt.grid()
#fifth subplot
#Plot graph for ZIP column vs Urinary_Sy
plt.subplot(3,3,5)
plt.plot(data['ZIP'],data['Urinary_Sy'])
#setting the title of a plot
plt.title("ZIP Vs Urinary_Sy")
plt.ylabel("Urinary_Sy")
plt.grid()
#sixth subplot
#Plot graph for ZIP column vs All_Cancer
plt.subplot(3,3,6)
plt.plot(data['ZIP'],data['All_Cancer'])
plt.title("ZIP Vs All_Cancer")
plt.ylabel("All_Cancer")
plt.grid()
# In[ ]:
# In[ ]: