edfEazyDataFix

HR Dataset

Detect duplicate employee records and normalise department names.

Overview

Small HR extract with department name variants ('Eng', 'Engineering', ' engineering'). Fixes strip whitespace and canonicalise categories.

Dataset

hr.csv812 rows × 9 columns
employee_idnamedepartmentrolestart_date...

Python code

hr.py
import eazydatafix as edf

result = edf.fix("hr.csv", strategy="aggressive")
result.diff()

Expected output

Python 3.11
>>> result.diff()
department: 4 canonicalised, 12 stripped
duplicates: 3 dropped