SAMANTUS Python for Data Analytics — Complete Training Manual CAPSTONE PROJECT 02
← Back to Course Index

Employee Performance Dashboard


On This Page

Capstone Project 2: Employee Performance Dashboard


C2.1  Project Overview

This project builds a performance analytics dashboard for a company's HR team, analyzing employee performance scores across departments and identifying the factors linked to strong performance.

C2.2  Business Problem

Management wants to understand which departments are performing best, whether tenure affects performance, and where to focus coaching and development resources.

C2.3  Dataset Description

ColumnDescription
employee_idUnique employee identifier
departmentDepartment (Sales, Marketing, Support, Engineering, HR)
tenure_yearsNumber of years at the company
performance_scoreAnnual performance review score (0-100)
training_hoursHours of training completed in the year

Sample size: 150 employee records from the latest annual review cycle.

C2.4  Objectives


C2.5  Step-by-Step Solution

C2.6  Complete Python Code

► employee_performance.py
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

# 1. Load data
df = pd.read_csv("employee_performance.csv")

# 2. Clean data
df = df.drop_duplicates(subset="employee_id")
df = df.dropna(subset=["performance_score"])

# 3. Department-wise summary
avg_by_dept = df.groupby("department")["performance_score"].mean().sort_values(ascending=False)
print("Average Performance by Department:\n", avg_by_dept.round(1))

# 4. Correlation: tenure vs performance
correlation = df[["tenure_years","performance_score"]].corr()
print("Correlation:\n", correlation)

# 5. Visualize
sns.boxplot(data=df, x="department", y="performance_score")
plt.title("Performance Score by Department")
plt.savefig("performance_boxplot.png")

C2.7  Expected Output

Output
Average Performance by Department:
Engineering   79.8
Sales        77.2
HR          75.4
Marketing   73.9
Support     71.6

C2.8  Visualizations

Figure C2.1 — Performance score distribution by department, showing spread and outliers.
Figure C2.1 — Performance score distribution by department, showing spread and outliers.
Figure C2.2 — Average performance score ranked by department.
Figure C2.2 — Average performance score ranked by department.
Figure C2.3 — Relationship between employee tenure and performance score.
Figure C2.3 — Relationship between employee tenure and performance score.

C2.9  Key Insights

C2.10  Business Recommendations

✓ Instructor Tip
This project is an excellent template for students to adapt into their own portfolio using publicly available HR analytics sample datasets (e.g. on Kaggle).