Data Cleaning Exercises

Pro exercise

The text 'false' is true in Python

Keep only active users. The active column is text — 'true', 'False', ' TRUE ' — and in Python any non-empty string is truthy, so astype(bool) keeps everyone. Parse the text into real booleans first.

  • booleans
  • types
  • pandas

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