internalsGet Pro

Module 11 · Lesson 5 of 13Pro

Feature engineering for tabular data

Level
Intermediate
Topic
Data preparation and feature engineering
Reading time
16 min

When you finish this page you can

  1. Explain why a model can only learn from what one row holds, and find history the row is missing.
  2. Turn an orders table into per-customer aggregates, ratios and counts with pandas named aggregation.
  3. Decide when a hand-made ratio helps a boosted tree or a linear model, and when the model can find it alone.
  4. Guard ratio features against short histories, zero denominators and drift between training and scoring.
  1. pandas for preparing ML data14 min
  2. Gradient boosting: XGBoost, LightGBM and CatBoost18 min
  3. Design: a churn prediction model for an online store28 min

Two customers, one identical row

is our example online store. Farah, an ML engineer, works on a notebook sample of about 1 million orders from 200,000 customers. Every Monday her model ranks those customers by how likely they are to stop buying, and Joseph’s growth team sends a ₹100 voucher to the top 20,000.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan