People Org Analysis
This analysis is on an organizational structure of a company (dataset in files section)
The data provided is a list of employees with their job family, management level, direct manager and management chain
On to the analysis.......
Load & Validate Data
The first step when working with any data set is to load the data and check the values, to ensure the data is complete and the correct data types.
Run to view results
Exploratory Analysis
Next, I'm going to the do some exploratory data analysis.
One thing I saw in the data that I'm interested in studying is how many employees have a manager that's not in their job family.
Run to view results
This is a surprising finding that the vast majority of employees have a manager that's in a different job family. This may indicate the employee is no longer employed with the company and the manager moved to a different family, or the manager family data isn't up-to-date, among other options.
Quantitative Analysis
First, I'll import the data and add it to a dataframe. Then I want to see the quantity of employees grouped by job family.
Run to view results
The results show a pretty even distribution of employees in each job family.
Span of Control by Job Family
To calculate span of control, we first have to count the number of employees and managers in each job family.
Run to view results
Run to view results
The job family with the highest span of control is marketing.
Employees with most reports
To analyze this metric, we first have to count how many direct reports each manager has.
Run to view results
Then comes the hard part. We need to count how many indirect reports each employee has.
We would need to use recursion here (not efficient) or iteration (more efficient).
Span of Control by Mgmt Level
To calculate the span of control for each management level, we need to:
a. count the total employees at each management level
b. count the total managers at each management level
c. divide employees by manager at each management level
Run to view results
Employees with Most Reports
Run to view results