Data Cleaning Exercises

Pro exercise

Whole numbers that can be missing

Children per household is optional: blank means not answered, not 0. In pandas a whole-number column with a gap becomes float (2.0, NaN) unless you use the nullable Int64 type, and the contract asks for whole numbers.

  • pandas
  • types
  • missing values

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