A pandas/NumPy pipeline that takes a genuinely messy loan-applicant dataset — duplicates, typos, and all — through 7 concrete cleaning steps to something a model could actually trust.
A loan-applicant dataset (13 columns — marital status, dependents, income, loan amount, term, credit score, approval status, and more) arrives the way real data always does: duplicated rows, inconsistent formatting, missing values, and a few outliers that make you question the data-entry process. This notebook walks it, step by step, into something actually safe to analyze or model: 615 rows in, 535 out, and every departure accounted for.
Don’t take my word for it — the receipts are on GitHubCleaning a real dataset column-by-column like this is a good reminder of how much judgment is hidden in "just clean the data" — whether to cap or drop outliers, whether missing Is_graduate should default to Graduate or Not Graduate, changes the dataset in ways a model will absolutely pick up on.