Part 08 / Topic 1 of 7
Feature engineering
New features from old — ratios, bins, date parts, interactions — are often worth more than a fancier model. But every engineered feature is a hypothesis, and hypotheses get measured:
df2 = df.assign(charge_per_tenure=lambda d: d.monthly_charges / d.tenure_months)
# corr with churn — monthly_charges: 0.168 | charge_per_tenure: 0.106
This plausible-sounding ratio is weaker than the raw column on this data. That is the real lesson: engineer freely, keep only what the metric keeps. Standard moves worth trying: ratios (spend per visit), bins (tenure brackets), date parts (signup month), and counts over windows (calls in the last 30 days).
Done here? The practice set for Part 8 — 4 exercises with solutions — is on the part page.