Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Import the necessary Libraries import numpy as np import pa... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Practice Of Statistics

Authors: Daren S. Starnes, Josh Tabor

6th Edition

978-1319113339

More Books

Students also viewed these Programming questions