Pal Baby Ki File
Pal Baby Ki File
CHEMISTRY
SUBMITTED TO SUBMITTED BY:
Mrs.SHIKHA GUPTA SHOURYA PAL
CLASS:
XII “B”
CERTIFICATE
SHOURYA PAL
Name of the Student
Table of content
Introduction
Objective of project
System development life cycle
About python
Coding
Output
Requirements
Bibliography
Objective of Project
It is used for:
Features of Python
1. Easy to use: Due to simple syntax rule
Shortcomings of Python
def bar_plot():
df=pd.read_csv('F:\\Book.csv')
df['Months'] =
['JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NO
V','DEC']
months=df["Months"]
minTemp=df["minTemp"]
maxTemp=df["maxTemp"]
Rainfall=df["Rainfall"]
Evaporation=df["Evaporation"]
plt.xlabel("Months")
print(" Press 1 to print the data for minTemp as per
months.")
print(" Press 2 to print the data for maxTemp as per month.")
print(" Press 3 to print the data for Rainfall as per months.")
print(" Press 4 to print the data for Evaporation as per
months.")
print(" Press 5 to print the data in form of stack bar chart")
print(" Press 6 to print the data in form of multi bar chart")
YC = int(input("Enter the number representing your
preferred bar graph from the above choices:"))
if YC == 1:
plt.ylabel("MinTemp")
plt.title("month wise min temp")
plt.bar(months,minTemp, color='b', width = 0.5)
plt.show()
elif YC == 2:
plt.ylabel("Max Temp ")
def scatter_chart():
df=pd.read_csv('F:\\Book.csv')
df['Months'] =
['JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NO
V','DEC']
months=df["Months"]
minTemp=df["minTemp"]
maxTemp=df["maxTemp"]
Rainfall=df["Rainfall"]
Evaporation=df["Evaporation"]
plt.xlabel("Months")
SC=plt.gca()
SC=plt.scatter(months, minTemp, color="b", label="Month
wise min temp")
SC=plt.scatter(months, maxTemp, color="g", label="Month
wise max temp")
SC=plt.scatter(months, Rainfall, color="r", label="month wise
rainfall")
SC=plt.scatter(months,Evaporation, color="c", label="month
wise evaporation")
plt.xlabel("Months")
plt.title("Complete Scatter Chart")
plt.legend()
plt.show()
r = "y"
while r == "y":
Fun()
YC = int(input("Enter Your Choice: "))
if YC == 1:
Read_CSV()
break
elif YC == 2:
No_Index()
break
elif YC == 3:
line_plot()
elif YC == 4:
bar_plot()
elif YC == 5:
scatter_chart()
elif YC == 6:
print("Thank You for using...")
break
else:
print("Enter valid input")
break
Book.csv
Output
Requirements
Hardware requirements
Computer,for coding and typing the required documents of the
project.
printer, to print the required documents of the project.
Compact drive.
Processor : Pentium quad core
RAM – 4 gb
Hard disk : 20 gb
Software requirements
Operating system : windows 10
Mysql : for storing data in the database
Python – mysqlconnector : for database connectivity and
Microsoft word, for presentation of output.
Bibliography