Data Analytics · SQL · HR · Work in progress
Which employee groups show higher observed attrition?
Losing employees affects recruitment costs, continuity and team stability. I explored a public 1,470-record HR dataset to understand which workforce characteristics are associated with employee attrition — and which questions the data cannot answer on its own.
What the documented analysis shows
Counts and rates were also recalculated from the original public CSV when preparing the static Excel evidence dashboard; desktop Excel compatibility has not yet been independently reviewed. This is a public educational dataset, not a live employer's workforce.
The practical question
Which groups appear more likely to leave, and where should an HR team investigate before proposing changes? A useful analysis needs both a clear signal and enough context to avoid mistaking association for cause.
What stands out
Overtime is associated with a substantially higher observed attrition rate. The documented analysis reports 30.53% among employees who work overtime and 10.44% among those who do not. That difference makes overtime a useful starting point for investigation, not proof that overtime itself caused anyone to leave.
Attrition also varies by role. For example, the documented Sales Representative group shows 33 departures among 83 employees (39.76%). Smaller groups should be interpreted carefully; raw percentages can exaggerate apparent differences.
Job satisfaction shows another pattern: 22.84% attrition at the lowest recorded satisfaction level versus 11.33% at the highest. The middle levels do not follow a perfectly linear pattern.
How the evidence can be reproduced
The analysis has now moved beyond a list of findings. The original 1,470-row CSV was independently checked and converted into a 28-row aggregate table covering overtime, roles, departments, satisfaction and tenure. Python scripts now reproduce the cleaned and aggregate datasets from the entire raw source. All 32 Python tests passed in a manually triggered GitHub Actions run, including full-source CSV regression checks and eight XLSX parity tests. Both regenerated CSVs matched the committed artifacts byte for byte. The seven-sheet static Excel workbook also passed structural validation and 28/28 aggregate-group comparisons, including seven repeated Dashboard checks and source provenance. Desktop Excel compatibility and verified XLSX regeneration remain pending.
For an independent review, inspect the raw-source methodology, the aggregate CSV and the source code. Individual employee records are not included in the aggregate export.
What changed in the cleaned dataset
A complete audit of the 1,470-row source found no missing values or duplicate employee identifiers. Three columns — EmployeeCount, Over18 and StandardHours — are constant and therefore uninformative for comparisons. I removed only those three columns from a separate working copy, preserving all 1,470 employee rows and 237 recorded attritions. The raw data and transformation decisions remain inspectable.
The cleaning, aggregation and static XLSX parity checks passed 32/32 Python tests in verified GitHub Actions run 38411506600. Both CSVs were rebuilt from the complete tracked source, and the committed workbook's 28 aggregate rows matched the source tables. The Excel workbook has not been independently validated in desktop Excel.
How a decision-maker could use this
The findings suggest where to ask better questions: Is overtime concentrated in particular roles? Do pay, tenure or job satisfaction explain part of the observed difference? Are early-career employees facing different conditions? These are investigation priorities, not validated retention interventions.
What remains unfinished
Project status: in progress. SQL analysis and business findings are documented, and a static Excel evidence dashboard now exists with seven worksheets. The source-wide data-quality review and a 32-column cleaned working CSV are now available. The 32 Python tests, both full-source CSV regeneration checks and read-only XLSX group reconciliation have passed. The final descriptive analytical review is complete; desktop Excel compatibility and verified XLSX regeneration remain pending. No production deployment, measured retention improvement or causal effect is claimed.