Ivy Professional School
Rating
Learning/Python Data Drill #2

Employee Performance Analysis

Last updated

Find the average performance score and total projects completed by each department using Python and Pandas.

PythonBeginnerPandasGroupByAggregationMeanSUM

Your Objective

Find the average performance score and total projects completed by each department using Python and Pandas.

The Setup

Your dataset contains an employee_performance DataFrame with employee, department, completed projects, and performance score data.

Table Schema

employee_performance
ColumnTypeKey / Notes
employee_idINTUnique employee ID
employee_nameVARCHAR(50)Employee name
departmentVARCHAR(50)Department name
projects_completedINTNumber of completed projects
performance_scoreFLOATEmployee performance score

Sample Data

employee_performance — 8 rows

employee_idemployee_namedepartmentprojects_completedperformance_score
101AliceHR882
102BobIT1291
103CharlieHR676
104DavidFinance1088
105EvaIT1595
106FrankFinance781
107GraceIT1189
108HenryHR984

Your Task

Performance Analysis: What is the average performance score and total projects completed by each department?

Your output should look like this (partial example):

departmentaverage_performance_scoretotal_projects_completed
Finance84.5017
HR80.6723
.........
Explore Enterprise Solutions