why is the missing values not filled?

You need remove inplace=True:

train['application_underwriting_score'] = train['application_underwriting_score'].fillna(train['application_underwriting_score'].median())

Or:

train['application_underwriting_score'].fillna(train['application_underwriting_score'].median(), inplace=True)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top