13 J14 J15 Project
13 J14 J15 Project
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
if opt == 1:
plt.ylabel("People Admitted")
plt.title("Months vs People Admitted")
plt.plot(Months, pa)
elif opt == 2:
plt.ylabel("Health Checkups")
plt.title("Months vs Health Checkups")
plt.plot(Months, hc)
elif opt == 3:
plt.ylabel("No. of Surgeries")
plt.title("Months vs No. of Surgeries")
plt.plot(Months, ns)
elif opt == 4:
plt.ylabel("Cardiology")
plt.title("Months vs Cardiology")
plt.plot(Months, cd)
elif opt == 5:
plt.ylabel("Nuerology")
plt.title("Months vs Nuerology")
plt.plot(Months, nl)
elif opt == 6:
plt.ylabel("Gyanacology")
plt.title("Months vs Gyanacology")
plt.plot(Months, gy)
elif opt == 7:
plt.ylabel("Dermatologist")
plt.title("Months vs Dermatologist")
plt.plot(Months, dm)
elif opt == 8:
plt.ylabel("Staff")
plt.title("Months vs Staff")
plt.plot(Months, st)
elif opt == 9:
plt.ylabel("Deaths")
plt.title("Months vs Deaths")
plt.plot(Months, deaths)
else:
print("Invalid option!")
return
plt.show()
if opt == 1:
plt.ylabel("People Admitted")
plt.title("Months vs People Admitted")
plt.scatter(Months, pa)
elif opt == 2:
plt.ylabel("Health Checkups")
plt.title("Months vs Health Checkups")
plt.scatter(Months, hc)
elif opt == 3:
plt.ylabel("No. of Surgeries")
plt.title("Months vs No. of Surgeries")
plt.scatter(Months, ns)
elif opt == 4:
plt.ylabel("Cardiology")
plt.title("Months vs Cardiology")
plt.scatter(Months, cd)
elif opt == 5:
plt.ylabel("Nuerology")
plt.title("Months vs Nuerology")
plt.scatter(Months, nl)
elif opt == 6:
plt.ylabel("Gyanacology")
plt.title("Months vs Gyanacology")
plt.scatter(Months, gy)
elif opt == 7:
plt.ylabel("Dermatologist")
plt.title("Months vs Dermatologist")
plt.scatter(Months, dm)
elif opt == 8:
plt.ylabel("Staff")
plt.title("Months vs Staff")
plt.scatter(Months, st)
elif opt == 9:
plt.ylabel("Deaths")
plt.title("Months vs Deaths")
plt.scatter(Months, deaths)
else:
print("Invalid option!")
return
plt.show()
if opt == 1:
plt.ylabel("People Admitted")
plt.title("Months vs People Admitted")
plt.bar(Months, pa)
elif opt == 2:
plt.ylabel("Health Checkups")
plt.title("Months vs Health Checkups")
plt.bar(Months, hc)
elif opt == 3:
plt.ylabel("No. of Surgeries")
plt.title("Months vs No. of Surgeries")
plt.bar(Months, ns)
elif opt == 4:
plt.ylabel("Cardiology")
plt.title("Months vs Cardiology")
plt.bar(Months, cd)
elif opt == 5:
plt.ylabel("Nuerology")
plt.title("Months vs Nuerology")
plt.bar(Months, nl)
elif opt == 6:
plt.ylabel("Gyanacology")
plt.title("Months vs Gyanacology")
plt.bar(Months, gy)
elif opt == 7:
plt.ylabel("Dermatologist")
plt.title("Months vs Dermatologist")
plt.bar(Months, dm)
elif opt == 8:
plt.ylabel("Staff")
plt.title("Months vs Staff")
plt.bar(Months, st)
elif opt == 9:
plt.ylabel("Deaths")
plt.title("Months vs Deaths")
plt.bar(Months, deaths)
else:
print("Invalid option!")
return
plt.show()