Get startedGet started for free

Missing data intuition

Here's an intuition check! When handling missing data, you have three options: keep, replace, and remove.

You've been looking at numeric columns, but what about a non-numeric column? How would you handle missing data in the column person_home_ownership which has string values?

The object ownership_table has already been created to show how many records occur in each unique value of person_home_ownership with the following code:

# Count the number of records for each unique value
cr_loan['person_home_ownership'].value_counts()

ownership_table and cr_loan are already loaded in the workspace.

This exercise is part of the course

Credit Risk Modeling in Python

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise