0% found this document useful (0 votes)
9 views1 page

Act 6

The document describes analyzing employee performance data including salary and performance score by department. It provides a sample dataset with employee ID, name, department, salary, and performance score. It outlines steps to load and extract relevant columns from the data, calculate basic statistics, and analyze mean salary and performance by department.

Uploaded by

alvindale joyosa
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)
9 views1 page

Act 6

The document describes analyzing employee performance data including salary and performance score by department. It provides a sample dataset with employee ID, name, department, salary, and performance score. It outlines steps to load and extract relevant columns from the data, calculate basic statistics, and analyze mean salary and performance by department.

Uploaded by

alvindale joyosa
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/ 1

Example: Analyzing Employee Performance and Salary

Dataset

We'll use a hypothetical dataset with the following columns:

 Employee ID
 Employee Name
 Department
 Salary ($)
 Performance Score (1 to 10)

Here is a sample of the data:

Employee ID Employee Name Department Salary ($) Performance Score


1 Alice Smith Engineering 85000 8
2 Bob Johnson Marketing 62000 6
3 Carol White Sales 72000 7
4 David Brown Engineering 95000 9
5 Eva Green Marketing 58000 5
6 Frank Harris Sales 67000 6
7 Grace Lee Engineering 83000 8
8 Henry Wilson Sales 60000 7

Steps

1. Load the Data: Load the employee data into a NumPy array.
Extract Relevant Columns
Extract the columns for salaries, performance scores, and departments from the
dataset.
2. Basic Statistics: NumPy functions to calculate the mean, median, and standard deviation
of salaries and performance scores.
3. Department Analysis: Calculate the mean salary and mean performance score for each
department.

(SAMPLE SYNTAX COMPLETE THE TABLE ABOVE)


data = np.array([ [1, 'Alice Smith', 'Engineering', 85000, 8], [2, 'Bob Johnson', 'Marketing', 62000, 6],
[3, 'Carol White', 'Sales', 72000, 7]])

You might also like