Data Cleaning Exercises

Pro exercise

One-hot encode a category

A model needs the acquisition channel as three true/false columns: is_email, is_search and is_social. An unknown channel must be reported, not silently encoded as all-false, which the model would read as a fourth, made-up category.

  • machine learning prep
  • encoding
  • categories

Sign in with a Pro or Lifetime plan to open the rules, the dataset and the workspace.