0% found this document useful (0 votes)
109 views33 pages

Employee Management Project

The document describes an employee management system project developed using Python. It allows users to view, analyze and visualize employee data stored in a CSV file. The system provides options to view data, add/remove rows and columns, and generate graphs like line, bar and histogram plots.

Uploaded by

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

Employee Management Project

The document describes an employee management system project developed using Python. It allows users to view, analyze and visualize employee data stored in a CSV file. The system provides options to view data, add/remove rows and columns, and generate graphs like line, bar and histogram plots.

Uploaded by

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

PROJECT REPORT

INFORMATICS PRACTICES

(FOR AISSCE-2024)

NAME :- TANYA SHUKLA


CLASS :- 12B
ROLL NO. :-

PM SHRI KENDRIYA VIDYALAYA


KANPUR CANTT
CERTIFICATE

This is to certify that this project report “EMPLOYEE MANAGEMENT


SYSTEM” is a record of bonafide work carried out by TANYA SHUKLA of
class XII-B during the academic year 2023-24 submitted for ALL INDIA
SENIOR SCHOOL CERTIFICATE EXAMINATION (AISSCE)– 2024 in
partial fulfilment of the requirements in INFORMATICS PRACTICES
prescribed by CBSE in the school PM SHRI KENDRIYA
VIDYALAYAKANPUR CANTT, KANPUR.

Date:

Signature of the Internal Examiner:


(MRS. MADHU JADON)

Signature of External Examiner: ________________________


ACKNOWLEDGEMENT

Apart from the efforts of me, the success of any project


depends largely on the encouragement and guidelines of
many others. I take this opportunity to express my
gratitude to the people who have been instrumental in
the successful completion of this project.

I express my sincere thanks to Mr. SOM PAL, Principal


of our Vidyalaya, who has created conductive
atmosphere to finish my project in time.

Sincere and true thanks to Mrs. MADHUJADON, PGT CS


for his valuable guidance, suggestion and
encouragement.

Name of the Student: TANYA SHUKLA


CLASS : XII-B
INDEX

 INTRODUCTION

 HARDWARE & SOFTWARE REQUIREMENT

 CSV DATA FILE

 SOURCE CODE

 OUTPUT SCREEN

 BIBLIOGRAPHY
INTRODUCTION
Employee Management system is an application that enables
users to create and store Employee Records. It also helps to
maintain the data of existing employees.
It also helps to know specific employees’ data. It also aids in
generating a pictorial representation of employees’ data, which
is very helpful for analysis. This application is helpful to
department of the organization which maintains data of
employees related to an organization.

It is simple to understand and can be used by anyone who is not


even familiar with simple employees system. It is user friendly
and just asks the user to follow step by step operations by
giving him few options. It is fast and can perform many
operations of a company.

This software package has been developed using the powerful


coding tools of PYTHON. The software is very user friendly. The
package contains different modules like Employee details. This
version of the software has multi-user approach. For further
enhancement or development of the package, user feedback
will be considered.
Hardware & Software Requirement

Hardware Requirement
PC/Laptop/MacBook with
Intel core/i3/i5/i7 or any equivalent
With at least 2 GB RAM
10 MB free space on Hard Disk
LCD/LED

Operating System & Compiler


MS Windows/Ubuntu/MacOS

Python IDLE 3.x

and/or
MS- EXCEL
OR
OPEN OFFICE CALC
CSV FILE
Employee_Data.CSV
EMPNO NAME GENDER BASIC DA HRA CCA PF TOTAL NET
1 JOHN M 5000 2500 1500 500 600 10100 9500

2 MOHAN M 3000 1500 900 300 360 6060 5700

3 SOHAN M 2000 1000 600 200 240 4040 3800

4 RADHA F 5000 2500 1500 500 600 10100 9500

5 GEETA F 6000 3000 1800 600 720 12120 11400

6 SIMRAN F 2500 1250 750 250 300 5050 4750

7 PRIYA F 3500 1750 1050 350 420 7070 6650

8 SIMMI F 8000 4000 2400 800 960 16160 15200

9 PREM M 5000 2500 1500 500 600 10100 9500

10 ASHWIN M 6000 3000 1800 600 720 12120 11400


#DEVELOPED BY TANYA SHUKLA -12B
#EMPLOYEE MANAGEMENT SYSTEM
import pandas as pd
import numpy as np
from tabulate import tabulate
import matplotlib.pyplot as plt

while True:
username = input("Enter User Name : ")
password = input("\nEnter Password : ")
if username == "Tanya" and password == "Shukla":
print("\nWelcome to EMPLOYEES MANAGEMENT SYSTEM\n")
break
else:
print("Invalid Username or Password")

while True:
print('\t\t *** Employees Data Analysis Project *** ')
print('\n\t\t\t1. Data Analysis')
print('\n\t\t\t2. Data Visualization')
print('\n\t\t\t3. Data Operations')
print('\n\t\t\t4. Exit\n')

choice = int(input('Select your Choice [1-4] : '))

if choice == 1:
while True:
print('\t*** EMPLOYEES MANAGEMENT SYSTEM ***\n')
print('*' * 50)
print("\n\t\t1. Show Employees Data")
print("\n\t\t2. Show Data Name-Wise")
print('\n\t\t3. Show first nth records')
print("\n\t\t4. Show last nth records")
print("\n\t\t5. Display employee with highest Salary")
print('\n\t\t6. Display employee with lowest Salary')
print("\n\t\t7. For Exit the program\n\n")

choice = int(input("Enter Your Choice [1-7] : "))

if choice == 1:
print("\nEmployees Data :\n\n")
df = pd.read_csv('Employee_Data.csv')
print(tabulate(df, showindex=False, headers=['EMPNO', 'NAME', 'GENDER',
'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
elif choice == 2:
print("\nEmployees Data Name - Wise :\n\n")
df = pd.read_csv('Employee_Data.csv', usecols=['NAME', 'GENDER',
'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'])
df = df.sort_values(by='NAME')
print(tabulate(df, showindex=False, headers=['NAME', 'GENDER', 'BASIC',
'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
elif choice == 3:
print("\nFirst N Rows \n\n")
df = pd.read_csv('Employee_Data.csv')
df = df.sort_values(by='EMPNO')
nth = int(input("How many rows to display? : "))
print(tabulate(df.head(nth), showindex=False, headers=['EMPNO', 'NAME',
'GENDER', 'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
elif choice == 4:
print("\nLast N Rows \n\n")
df = pd.read_csv('Employee_Data.csv')
df = df.sort_values(by='EMPNO')
nth = int(input("How many rows to display? : "))
print(tabulate(df.tail(nth), showindex=False, headers=['EMPNO', 'NAME',
'GENDER', 'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
elif choice == 5:
print("\nDisplay employee with highest Salary :\n\n")
df = pd.read_csv('Employee_Data.csv')
df = df.sort_values(by='NET')
print(tabulate(df.tail(1), showindex=False, headers=['EMPNO', 'NAME',
'GENDER', 'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
elif choice == 6:
print("\nDisplay employee with lowest Salary :\n\n")
df = pd.read_csv('Employee_Data.csv')
df = df.sort_values(by='NET')
print(tabulate(df.head(1), showindex=False, headers=['EMPNO', 'NAME',
'GENDER', 'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
elif choice == 7:
print('Exit to main menu............')
break
else:
print('Invalid Choice, Retry 1/2/3/4/5/6/7')

elif choice == 2:
while True:
print('Data Visualization')
print('\n\t1. Plot Line Chart (Name and Basic Salary)')
print('\n\t2. Plot Bar Chart Vertical(Name and Basic Salary)')
print('\n\t3. Plot Bar Horizontal Chart (Name and Basic Salary)')
print('\n\t4. Plot Histogram (Basic Salary)')
print('\n\t5. Exit\n')

choic = int(input('Select your Choice [1-4] : '))

if choic == 1:
print('Line Chart')
df = pd.read_csv('Employee_Data.csv')
NAME = df["NAME"]
BASIC = df["BASIC"]
plt.ylabel("Basic Salary ----------->")
plt.xlabel("Name -------->")
plt.title("*** Name and Basic Salary ***")
plt.plot(NAME, BASIC, linewidth=3 ,color='g',linestyle='dashed',marker='o',
markerfacecolor='blue', markersize=12)
plt.grid()
plt.savefig('emp_line.pdf')
plt.show()
elif choic == 2:
print('Bar Chart')
df = pd.read_csv('Employee_Data.csv')
NAME = df["NAME"]
BASIC = df["BASIC"]
plt.ylabel("BASIC")
plt.title("*** Name and Basic Salary ***")
plt.bar(NAME, BASIC, edgecolor='blueviolet',
color='g')
plt.grid()
plt.savefig('emp_bar.pdf')
plt.show()
elif choic == 3:
print('Bar Chart')
df = pd.read_csv('Employee_Data.csv')
NAME = df["NAME"]
BASIC = df["BASIC"]
plt.xlabel("Basic Salary")
plt.title("Basic Salary")
plt.barh(NAME, BASIC, color='y',edgecolor='maroon')
plt.grid()
plt.savefig('emp_barh.pdf')
plt.show()
elif choic == 4:
print('Histogram')
df = pd.read_csv('Employee_Data.csv')
NAME = df["NAME"]
BASIC = df["BASIC"]
plt.title("Name and Basic Salary")
plt.hist(BASIC, bins=8,color='c')
plt.grid()
plt.savefig('emp_hist.pdf')
plt.show()
elif choic == 5:
print('Exit to main menu........')
break
else:
print('Invalid choice')
elif choice == 3:
while True:
print('Data Operations')
print('\n\t1. Add a row to Dataframe')
print('\n\t2. Remove a row to Dataframe')
print('\n\t3. Add a Column to Dataframe')
print('\n\t4. Remove a Column to Dataframe')
print('\n\t5. Exit\n')

choic = int(input('Select your Choice [1-5] : '))

if choic == 1:
df = pd.read_csv('Employee_Data.csv')
EMPNO = int(input('Employee No : '))
NAME = input('Employee Name : ')
GENDER = input('Gender [M/F/T] : ')
BASIC = int(input('Basic Salary : '))
DA = 0.50 * BASIC
HRA = 0.30 * BASIC
CCA = 0.10 * BASIC
PF = 0.12 * BASIC
TOTAL = BASIC + DA + CCA + PF
NET = TOTAL - PF
cr = df['EMPNO'].count()
df1 = pd.DataFrame({"EMPNO": EMPNO, "NAME": NAME, "GENDER":
GENDER, "BASIC": BASIC, "DA": DA, "HRA": HRA,
"CCA": CCA, "PF": PF, "TOTAL": TOTAL, "NET": NET}, index=[cr])
df.loc[cr] = df1.iloc[0]
print(tabulate(df, showindex=False, headers=['EMPNO', 'NAME', 'GENDER',
'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
print('Record added Successfully..............')
df.to_csv('Employee_Data.csv',index=False)
elif choic == 2:
df = pd.read_csv('Employee_Data.csv')
print(tabulate(df, showindex=False, headers=['EMPNO', 'NAME', 'GENDER',
'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
r = int(input("Enter the Employee Number to be removed : "))
df = df.drop(r - 1) #r-1 means index
print(tabulate(df, showindex=False, headers=['EMPNO', 'NAME', 'GENDER',
'BASIC', 'DA', 'HRA', 'CCA', 'PF', 'TOTAL', 'NET'], tablefmt='pretty'))
print('Record deleted Successfully..............')
df.to_csv('Employee_Data.csv',index=False)
elif choic == 3:
print('Add a Column')
df = pd.read_csv('Employee_Data.csv')
print("Add Column DEPARTMENT : ")
df['DEPARTMENT'] = ['HR', 'SALES', 'FINANCE', 'HR', 'SALES', 'FINANCE',
'HR', 'SALES', 'FINANCE', 'SALES']
print(tabulate(df, headers=['EMPNO', 'NAME', 'GENDER', 'BASIC', 'DA', 'HRA',
'CCA', 'PF', 'TOTAL', 'NET', 'DEPARTMENT'], tablefmt='pretty'))
print('Column added Successfully..............')
df.to_csv('Employee_Data.csv',index=False)
elif choic == 4:
print('Remove a Column')
df = pd.read_csv('Employee_Data.csv')
C = input("Enter the Column Name to remove : ")
C = C.upper()
df = df.drop(C, axis=1)
print(tabulate(df, tablefmt='pretty'))
print('Column removed Successfully..............')
df.to_csv('Employee_Data.csv',index=False)
elif choic == 5:
print('Exit to main menu........')
break
else:
print('Invalid choice')

elif choice == 4:
print('Exit from menu........')
break
else:
print('Invalid choice')
OUTPUT
SCREENS
 MAIN MENU
 DATA ANALYSIS
 Show Employees Data
 Show Data Name Wise
 Show First Nth Records

 Show Last Nth Records

 Show Employee with Highest Salary


 Show Employee with Lowest Salary
 Data Visualisation
 Line Chart(Name and Basic Salary)
 BAR CHART( NAME AND BASIC SALARY)
 BAR CHART HORIZONTALLY (BASIC
SALARY)
 HISTOGRAM (NAME AND BASIC
SALARY)
 DATA OPERATION
 Add A Row
 Remove a record
 Add A Column
 Remove A Column
BIBLIOGRAPHY

We took the information for our project report from the following
sources:
Reference books:
1. Informatics Practices by Sumita Arora.
2. Complete reference with Python
3. Data Analysis-Python
4. NCERT Text Book
Websites:
 https://www.python.org.in
 https://www.google.com
 https://www.cbseacademic.nic.in

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy