Question: Modify the following block of code so that in the training data, you fill missing gender with female and missing marriage status with No.
Modify the following block of code so that in the training data, you fill missing gender with "female" and missing marriage status with "No". train.Gender.fillna train.Married.fillna (train.Married.mode() (train.Gender.mode () [0], inplace=True) [0], inplace=True)
Step by Step Solution
★★★★★
3.30 Rating (153 Votes )
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Import the necessary Libraries import numpy as np import pa... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
