Ip Kamalesh
Ip Kamalesh
Ip Kamalesh
NAME : C.KAMALESH
ROLL NO:
CLASS: XII
SECTION: G
ACKNOWLEDGEMENT
3 Hardware requirements 7
4 Software requirements 8
5 About Python 9
6 About Pandas 10
7 About Series 11
8 About DataFrame 12
9 About CSV 13
10 About Matplotlib 14
11 Source Code 15
12 Output Screen 19
13 Data Vizualisation 26
15 Conclusion 29
16 Reference 30
BRIEF DESCRIPTION ABOUT THE PROJECT
1. OPERATING SYSTEM
Windows 7 or 10
Mac OS 10.11 or Higher
Linux(latest)
2. PROCESSOR
1. X86 64-bit CPU (Intel/AMD architecture)
3. RAM
2. 4 GB ram
4. STORAGE SPACE
3. 5 GB free disk space
SOFTWARE REQUIREMENTS
1.OPERATING SYSTEM
Windows 7 or 10
Mac OS 10.11 or Higher
Linux(latest)
2.APPLICATION
Python IDLE (latest version)
3.PROGRAMMING LANGUAGE
Python
4.MS OFFICE
Microsoft Excel
Microsoft Word
5.LIBRARIES
Pandas
Numpy
Matplotlib
ABOUT PYTHON
import numpy as np
salary = {}
rep='y'
while(rep=='y'):
print('6.Exporting to CSV')
print('7.Visualization')
print('8.QUIT')
if (ch==1):
d= pd.read_csv("D:\emp.csv")
df = pd.DataFrame(d)
print(df)
elif(ch==2):
print("")
d= pd.read_csv("D:\emp.csv")
df=pd.DataFrame(d,columns=["Idno","Name","Gender"])
print(df)
elif(ch==3):
s=int(input("Enter Salary:"))
df=df._append({"Name":n,"Idno":i,"Gender":
g,"Salary":s},ignore_index=True)
print("")
print(df)
elif(ch==4):
print("")
n=p["Name"].values[0]
an=((p['Salary'])*12).values[0]
elif(ch==5):
print(df.loc[0:1,'Name'])
print(df.loc[:,"Salary":'Idno'])
print(df[['Idno','Gender']])
elif(ch==6):
df.to_csv(r'D:\det.csv')
elif(ch==7):
print("\n Visualization")
d=pd.read_csv("D:\emp.csv")
df=pd.DataFrame(d,columns=['Name','Salary'])
print(df)
n=df['Name']
t=df['Salary']
plt.bar(n,t,color='green',label='Annual salary')
plt.xlabel("Name")
plt.ylabel("Salary")
plt.title("Comparison of salary")
plt.legend()
plt.show()
n=df['Name']
t=df['Salary']
plt.plot(n,t)
plt.xlabel("Name")
plt.ylabel("Salary")
plt.title("Comparison of salary")
plt.show()
elif(ch==8):
print("\n Quit")
print("Bye!!")
exit()
else:
Enter a choice(1-8):1
Enter a choice(1-8):2
Enter a choice(1-8):3
Enter a choice(1-8):4
Enter a choice(1-8):5
Enter a choice(1-8):6
Exporting to csv
Enter a choice(1-8):7
Visualization
Enter a choice(1-8):8
Quit
Bye!!
DATA VIZUALISATION
BACKEND TABLE – CSV
Exported CSV
CONCLUSION