Ip Kamalesh
Ip Kamalesh
NAME : C.KAMALESH
ROLL NO:
CLASS: XII
SECTION: G
ACKNOWLEDGEMENT
2 Hardware Requirements 6
3 Software Requirements 7
4 About Python 8
5 About Pandas 9
6 About Series 10
7 About DataFrame 11
8 About CSV 12
9 About Matplotlib 13
10 Source Code 14
11 Output Screen 18
13 Data Vizualisation 26
14 Conclusion 28
15 Reference 29
BRIEF DESCRIPTION ABOUT THE PROJECT
1. OPERATING SYSTEM
Windows 10 or 11
2. PROCESSOR
X86 64-bit CPU (Intel/AMD architecture)
3. RAM
16 GB ram
4. STORAGE SPACE
500 GB Hard Disk
SOFTWARE REQUIREMENTS
1.APPLICATION
Python IDLE (latest version)
2.PROGRAMMING LANGUAGE
Python
3.MS OFFICE
Microsoft Excel
Microsoft Word
4.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[:,"Name":”Salary”])
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!!
BACKEND TABLE – CSV
Exported CSV
DATA VIZUALISATION
CONCLUSION