0% found this document useful (0 votes)
127 views32 pages

Employee Management System

Excessivecc dd bcddxaxcddxc bgbvccsaaascvcaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views32 pages

Employee Management System

Excessivecc dd bcddxaxcddxc bgbvccsaaascvcaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 32

Employee

MANAGEMENT
SYSTEM
CERTIFICATE

This is to certify that “ __________ ”


Student of class – _________ has
Successfully completed their Infomatics
Practices
Project on “ Python Programs and Data
Management
using CSV ” under the guidance of
“Ms. Shikha Seth”

_____________
_____________
Ms. Shikha Seth
ACKNOWLEDGEMENT

I would like to express my special thanks of


Gratitude to my IP teacher “Ms Shikha
Seth” for their able guidance and support in
completing my Projet.

DATE :
INDEX

1. Certificate
2. Acknowledgement
3. Introduction and features of the
project
4. Future use of the project
5. Sample output and coding with
explanation
Future Use Of
The Project
It will be beneficial for
Employee Management System
for keeping the record of
employees and calculation of
salaries
It will useful for all form of
calculation and record keeping
for employees of the
Organizations using CSV files
for data collection.
INTRODUCTION

From a construction firm to a


stock exchange, every
organisation depends on large
databases. These are
essentially collections of tables
and are connected to each
other through fields or, more
precisely, columns/attributes
The Python programming
language has powerful features
for database programming.
Python supports various
databases like MySQL, Oracle
etc. Python also supports Data
Definition Language (DDL),
Data Manipulation Language
(DML) and Data Query
Statements.
While designing real life
applications, certain situations
arise pertaining to storing some
important and necessary
information by the user.
An application usually stores a
lot of data in the form of a
database which is not directly
accessible to the user. This
database is used by the
application to give suitable
response to the user.
Python is a flexible, portable
and easy to learn language.
Coding in Python:
import pandas as pd
import matplotlib.pyplot as plt
# Main Menu
while(True):
print("Main Menu")
print("1. Fetch data")
print("2. Dataframe Statistics")
print("3. Display Records")
print("4. Working on Records")
print("5. Working on Columns")
print("6. Search specific
row/column")
print("7. Data Visualization")
print("8. Exit")
ch=int(input("Enter your
choice"))
if ch==1:
result=pd.read_csv(r"C:\
Users\My document Seth\
OneDrive\Documents\
salary.csv",index_col=0)
elif ch==2:
while (True):
print("Dataframe
Statistics Menu")
print("1. Display all
column names")
print("2. Display the
indexes")
print("3. Display the
shape")
print("4. Display the
dimension")
print("5. Display the data
types of all columns")
print("6. Display the size")
print("7. Exit")
ch2=int(input("Enter
choice"))
if ch2==1:
print(result.columns)
elif ch2==2:
print(result.index)
elif ch2==3:
print(result.shape)
elif ch2==4:
print(result.ndim)
elif ch2==5:
print(result.dtypes)
elif ch2==6:
print(result.size)
elif ch2==7:
break
elif ch==3:
while(True):
print("Display Records
Menu")
print("1. Top 5 Resords")
print("2. Bottom 5
Records")
print("3. Specific number
of records from the top")
print("4. Specific number
of records from the bottom")
print("5. Details of a
specific Employee")
print("6. Display details of
all Employees")
print("7. Exit")
ch3=int(input("Enter
choice"))
if ch3==1:
print(result.head())
elif ch3==2:
print(result.tail())
elif ch3==3:
n=int(input("Enter how
many records you want to
display from the top"))
print(result.head(n))
elif ch3==4:
n=int(input("Enter how
many records you want to
display from the bottom"))
print(result.tail(n))
elif ch3==5:
st=input("Enter the
Employee name for which you
want to see the details")
print(result.loc[st])
elif ch3==6:
print("Employee
Records")
print(result)
elif ch3==7:
break
elif ch==4:
while(True):
print("Working on
Records Menu")
print("1. Insert a specific
Employee Detail")
print("2. Delete a specific
Employee Detail")
print("3. Update a specific
Employee detail")
print("4. Exit")
ch4=int(input("Enter
choice"))
if ch4==1:
a=input("Enter
Employee name")
b=int(input("Enter
Salary:"))
c=int(input("Enter
DA:"))
d=int(input("Enter
HRA"))
e=int(input("Enter
TA"))
f=int(input("Enter
Total"))
g=int(input("Enter
Tax"))
h=int(input("Enter Net
Salary"))

human.loc[a]=[b,c,d,e,f,g,h]
print("Data successfully
inserted")
elif ch4==2:
a=input("Enter
Employee name whose data
needs to be deleted")

human.drop([a],inplace=True)
print("Data successfully
deleted")
elif ch4==3:
a=input("Enter
Employee name whose data
needs to be updated")
b=int(input("Enter
Salary:"))
c=int(input("Enter
DA:"))
d=int(input("Enter
HRA"))
e=int(input("Enter
TA"))
f=int(input("Enter
Total"))
g=int(input("Enter
Tax"))
h=int(input("Enter Net
Salary"))

human.loc[a]=[b,c,d,e,f,g,h]
print("Data successfully
updated")
elif ch4==4:
break
elif ch==5:
while(True):
print("Working on
Columns Menu")
print("1. Insert a new
column data")
print("2. Delete a specific
column")
print("3. Exit")
ch5=int(input("Enter
choice"))
if ch5==1:
print("Enter details")
h=input("Enter
column/heading name")
det=eval(input("Enter
details corresponding to all
Employee:(enclosed in [ ])"))
result[h]=pd.Series(data=det,i
ndex=result.index)
print("Column
inserted")
elif ch5==2:
a=input("Enter column
name which needs to be
deleted")

human.drop([a],axis=1,inplace
=False)
print("Column
Temporary deleted")
elif ch5==3:
break
elif ch==6:
while(True):
print("Search Menu")
print("1. Search for the
details of a specific Employee")
print("2. Search details of
a specific as per a specific
column heading")
print("3. Exit")
ch6=int(input("Enter
choice"))
if ch6==1:
st=input("Enter the
name of the Employee whose
details you want to see")
print(result.loc[st])
elif ch6==2:
col=input("Enter
column/heading name whose
details you want to see")
print(result[col])
elif ch6==3:
break

elif ch==7:
while(True):

print("Bar Plot Sub


Menu")
print("1. Employee wise
Salary")
print("2. Employee wise
Da")
print("3. Employee wise
HRA")
print("4. Employee wise
Total Salary")
print("5. Exit")
chbar=int(input("Enter
choice"))
if chbar==1:

plt.bar(result.index,result['Salar
y'],label="Highest salary",
color="green")

plt.title("EMPLOYEEWISE
Salary")

plt.xlabel("EMPLOYEES")
plt.ylabel("Salary")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==2:

plt.bar(result.index,result['Da'],l
abel="Da",color="yellow")

plt.title("EMPLOYEEWISE ")

plt.xlabel("EMPLOYEES")
plt.ylabel("Dearness
Allowance")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==3:

plt.bar(result.index,result['HRA'
],label="Average HRA
obtained",color="orange")
plt.title("EMPLOYEE
Salary")

plt.xlabel("EMPLOYEES")
plt.ylabel("AVERAGE
HRA")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==4:
plt.bar(result.index,result['Total
'],label="Total",color="green")
plt.title("EMPLOYEE
Salary")

plt.xlabel("EMPLOYEES")
plt.ylabel("Total")
plt.xticks(rotation=30)
plt.legend()
plt.grid(True)
plt.show()
elif chbar==5:
break
elif ch==8:
break
OUTPUT Screen

You might also like